[nvim] run TSUpdate in treesitter.vim

This commit is contained in:
odrling 2021-03-25 16:39:42 +01:00
parent 7b69794889
commit 3495d90242
2 changed files with 13 additions and 10 deletions

View file

@ -285,7 +285,6 @@ endfunction
function! ConfUpdate()
CocUpdate
TSUpdate
Clap install-binary
endfunction

View file

@ -1,11 +1,15 @@
lua <<EOF
require'nvim-treesitter.configs'.setup {
-- Modules and its options go here
highlight = { enable = true },
incremental_selection = { enable = true },
textobjects = { enable = true },
}
try
lua <<EOF
require'nvim-treesitter.configs'.setup {
-- Modules and its options go here
highlight = { enable = true },
incremental_selection = { enable = true },
textobjects = { enable = true },
}
EOF
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
catch
echo "treesitter is not set up properly"
endtry