jonnyjones99 / dotfiles

My dotfiles config for vim/tmux/alacritty/yabai/skhd
3 stars 0 forks source link

Treesitter is bad #8

Open jonnyjones99 opened 4 months ago

jonnyjones99 commented 4 months ago

fix it

especially in go files

jonnyjones99 commented 3 months ago

Mostly fixed, but it wont autotoggle for go or ts files. Have to manually type:

TSEnable highlight or TSToggle highlight

I setup a autocmd to automatically use the command but it causes weird behavior in NVIM. When I go to write to a file I have to use to :w!. This apparently happens when a autocmd is failing.

I've tried the autocmd using different vim events such as bufenter, bufnewfile, bufread and no matter what event I choose I still get the weird behavior when writing to a file.