mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:20:05 +08:00
perf(treesitter): add default setup function
This commit is contained in:
parent
f8b280e03e
commit
2ad0da4272
@ -33,6 +33,12 @@ function! SpaceVim#layers#treesitter#health() abort
|
|||||||
return 1
|
return 1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! SpaceVim#layers#treesitter#setup() abort
|
||||||
|
|
||||||
|
lua require('spacevim.treesitter').setup()
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#layers#treesitter#loadable() abort
|
function! SpaceVim#layers#treesitter#loadable() abort
|
||||||
|
|
||||||
return has('nvim')
|
return has('nvim')
|
||||||
|
1
config/plugins/nvim-treesitter-0.9.1.vim
Normal file
1
config/plugins/nvim-treesitter-0.9.1.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
call SpaceVim#layers#treesitter#setup()
|
20
lua/spacevim/treesitter.lua
Normal file
20
lua/spacevim/treesitter.lua
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.setup()
|
||||||
|
require('nvim-treesitter.configs').setup({
|
||||||
|
ensure_installed = {},
|
||||||
|
|
||||||
|
sync_install = false,
|
||||||
|
|
||||||
|
auto_install = false,
|
||||||
|
|
||||||
|
ignore_install = {},
|
||||||
|
|
||||||
|
highlight = {
|
||||||
|
enable = false,
|
||||||
|
disable = {"lua"},
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
return M
|
Loading…
Reference in New Issue
Block a user