2022-02-28 05:11:19 +00:00
|
|
|
|
|
|
|
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 = { },
|
2022-03-01 06:25:44 +00:00
|
|
|
--additional_vim_regex_highlighting = true
|
2022-02-28 05:11:19 +00:00
|
|
|
},
|
|
|
|
context_commentstring = {
|
|
|
|
enable = true,
|
|
|
|
enable_autocmd = false,
|
|
|
|
},
|
|
|
|
indent = { enable = true, disable = { } },
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|
|
|
|
|