[nvim] run TSUpdate in treesitter.vim
This commit is contained in:
parent
7b69794889
commit
3495d90242
|
@ -285,7 +285,6 @@ endfunction
|
|||
|
||||
function! ConfUpdate()
|
||||
CocUpdate
|
||||
TSUpdate
|
||||
Clap install-binary
|
||||
endfunction
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue