[vim] Add treesitter plugin
Add after config script
This commit is contained in:
parent
eb270c30bf
commit
556d125741
2 changed files with 12 additions and 0 deletions
11
config/nvim/after/plugin/treesitter.lua
Normal file
11
config/nvim/after/plugin/treesitter.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
local treesitter_configs = require 'nvim-treesitter.configs'
|
||||||
|
|
||||||
|
treesitter_configs.setup {
|
||||||
|
ensure_installed = { "lua", "vim", "javascript", "swift" },
|
||||||
|
sync_install = true,
|
||||||
|
auto_install = true,
|
||||||
|
hightlight = {
|
||||||
|
enable = true,
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
}
|
|
@ -38,6 +38,7 @@ if has('nvim')
|
||||||
Plug 'hrsh7th/cmp-path'
|
Plug 'hrsh7th/cmp-path'
|
||||||
Plug 'hrsh7th/cmp-cmdline'
|
Plug 'hrsh7th/cmp-cmdline'
|
||||||
Plug 'hrsh7th/nvim-cmp'
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue