26 lines
420 B
Lua
26 lines
420 B
Lua
|
|
||
|
local M = {}
|
||
|
|
||
|
function M.config()
|
||
|
local present, treesitter_configs = pcall(require, 'nvim-treesitter.configs')
|
||
|
if not present then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
treesitter_configs.setup {
|
||
|
highlight = {
|
||
|
enable = true,
|
||
|
disable = { },
|
||
|
additional_vim_regex_highlighting = true
|
||
|
},
|
||
|
context_commentstring = {
|
||
|
enable = true,
|
||
|
enable_autocmd = false,
|
||
|
},
|
||
|
indent = { enable = true, disable = { } },
|
||
|
}
|
||
|
end
|
||
|
|
||
|
return M
|
||
|
|