-
Notifications
You must be signed in to change notification settings - Fork 62
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
gruvbox is interfering with Typescript indent #102
Comments
I'm sure there are other cases, but it looks like for this particular case, setting the |
@rbong yes, I can confirm the workaround works. Why does |
The fix turns out to be simple from our side... the highlight groups are formatted in the fashion For some reason, using the latter breaks indentation. I am sure there is a bug somewhere in the typescript plugin or Vim, so I am keeping this open for now until I can pin down an issue and submit it or determine if it's intended behaviour just so I can keep us from breaking other plugins in the same way. I have no idea why |
Problem is this line in vim-jsx-pretty, it is case sensitive. Going to submit a PR. |
That should tie up any lose ends from our side. |
Preparation
Make sure you are using a
xterm-256color
compatible terminal, such as gnome-terminal.Copy the following to a Dockerfile and execute
docker build -t gruvbox-bug .
docker run --rm -ti gruvbox-bug
, you are going to log into a shell.Tests with
colorscheme gruvbox
The
.vim/vimrc
already has thecolorscheme gruvbox
set. Now execute the following tests:Execute
TERM=xterm-256color vim test.tsx
and issue the=G
command to reindent the file. The file should be wrongly indented.Execute
TERM=xterm vim test.tsx
and issue the=G
command to reindent the file. The file should be correctly indented.Tests without
colorscheme gruvbox
Comment out the line setting the colorscheme in
.vim/vimrc
and rerun the two previous tests, and you will see that, no matter theTERM
variable, it will work.The text was updated successfully, but these errors were encountered: