mirror of https://github.com/ericonr/dotfiles.git
Add nvim-treesitter.
Haven't enabled almost anything explicitly yet because of [1]; I like rainbow. Should be simple to fix, just requires some config changes. Have definitely enabled TS for .tex files though, since the native syntax highlighting is way too slow. [1] https://github.com/luochen1990/rainbow/issues/163
This commit is contained in:
parent
9cb82be121
commit
60d922ca49
|
@ -34,3 +34,6 @@
|
|||
[submodule "nvim/.config/nvim/pack/plugins/start/telescope-fzf-native.nvim"]
|
||||
path = nvim/.config/nvim/pack/plugins/start/telescope-fzf-native.nvim
|
||||
url = https://github.com/nvim-telescope/telescope-fzf-native.nvim.git
|
||||
[submodule "nvim/.config/nvim/pack/plugins/start/nvim-treesitter"]
|
||||
path = nvim/.config/nvim/pack/plugins/start/nvim-treesitter
|
||||
url = https://github.com/nvim-treesitter/nvim-treesitter.git
|
||||
|
|
|
@ -67,6 +67,17 @@ require('telescope').load_extension('fzf')
|
|||
EOF
|
||||
|
||||
|
||||
" TREE-SITTER
|
||||
|
||||
" Use tree-sitter to highlight Latex, it's considerably less laggy
|
||||
fu! LatexUseTS()
|
||||
:syntax clear
|
||||
:TSEnableAll highlight
|
||||
:TSBufEnable highlight
|
||||
endfunction
|
||||
autocmd BufNewFile,BufRead *.tex :call LatexUseTS()
|
||||
|
||||
|
||||
" LANGUAGE SERVER
|
||||
|
||||
" Partly from https://github.com/neovim/nvim-lspconfig/blob/master/README.md
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 5b6f6ae30c1cf8fceefe08a9bcf799870558a878
|
|
@ -63,7 +63,7 @@ _device="usbutils"
|
|||
_monitor="bmon htop"
|
||||
_net="curl wget git aerc asciinema lynx weechat"
|
||||
_crypto="gnupg2 outils minisign"
|
||||
_shell="fish-shell lolcat-c tmux xxd neovim"
|
||||
_shell="fish-shell lolcat-c tmux xxd neovim tree-sitter-devel"
|
||||
_tools="bsdtar fd lowdown p7zip parallel ripgrep ugrep stow execline s6 fswatch moreutils"
|
||||
_boxes="toybox toybox.static busybox"
|
||||
_void="vsv xtools fuzzypkg graphviz"
|
||||
|
|
Loading…
Reference in New Issue