1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:20:04 +08:00

perf(treesitter): add default setup function

This commit is contained in:
Eric Wong 2024-03-11 22:07:14 +08:00
parent f8b280e03e
commit 2ad0da4272
3 changed files with 27 additions and 0 deletions

View File

@ -33,6 +33,12 @@ function! SpaceVim#layers#treesitter#health() abort
return 1
endfunction
function! SpaceVim#layers#treesitter#setup() abort
lua require('spacevim.treesitter').setup()
endfunction
function! SpaceVim#layers#treesitter#loadable() abort
return has('nvim')

View File

@ -0,0 +1 @@
call SpaceVim#layers#treesitter#setup()

View 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