-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation is broken #20
Comments
Hmm, I thought I fixed this. I'll have a look at it again. |
@dag Why don't you use the indentation stuff from this other fish vim plugin? https://github.com/Soares/fish.vim/blob/master/indent/fish.vim |
Have you tried that with endwise? Thinking about it more now I think the problem is that if you make If I can't figure out how to make everything work together maybe I should add an option for disabling endwise for fish all together, and make |
I should note, you can also use |
@dag I managed to make endwise work with |
IMHO, vim-fish should not break I don't have endwise installed, but my vim is still unable to indent code properly when using vim-fish. Endwise is nice but a luxury, indenting code properly is a must. How can I tell vim-fish to be compatible with |
Yeah, I'm also seeing broken behaviour when indenting using |
Any updates? |
https://github.com/RobertAudi/fish.vim (same as https://github.com/AzizLight/fish.vim) works much better |
@nhooyr None of them works well on indentation. |
When I add an
if
statement, and press<Enter>
, theend
keyword is added. So far so good. However, if theif
statement is indented already (or nested), i.e.: Thei
of theif
and thee
ofend
is not in column 0, and if I indent the selection with=
(in normal mode using==
, or in visual mode), then the indentation completely breaks.The breakage gets worse every time a block of code is indented, as shown in the screenshots.
The text was updated successfully, but these errors were encountered: