ziglang / zig.vim

Vim configuration for Zig
MIT License
448 stars 56 forks source link

Fixing indentation on empty brackets with trailing comma/colon (issue #42) #56

Open yohannd1 opened 3 years ago

yohannd1 commented 3 years ago

An attempt on fixing what https://github.com/ziglang/zig.vim/issues/42 reports.

I'm not yet sure if this fully fixes the issue. I'll be testing it more on the following days and will report any issue I find.

haze commented 3 years ago

Hey @YohananDiamond, I may have encountered a similar issue:

before I hit enter

after I hit enter

With the changes in this PR I was not able to see a change D:

EDIT: I figured out that this was my tree sitter plugin messing with the indentation! sorry for the false alarm...