mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-23 16:30:24 -05:00
23 lines
776 B
Lua
23 lines
776 B
Lua
|
if (vim.g.enabletreesitter ~= nill and vim.g.enabletreesitter == 1) then
|
||
|
if (vim.g.treesitterparserdir ~= nill) then
|
||
|
local parser_dir = vim.g.treesitterparserdir
|
||
|
else
|
||
|
local parser_dir = "~/.config/nvim/treesitter-parsers"
|
||
|
end
|
||
|
|
||
|
vim.opt.runtimepath:append(parser_dir)
|
||
|
|
||
|
require'nvim-treesitter.configs'.setup {
|
||
|
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
||
|
sync_install = false,
|
||
|
auto_install = false,
|
||
|
parser_install_dir = parser_dir,
|
||
|
|
||
|
highlight = {
|
||
|
enable = true,
|
||
|
disable = {},
|
||
|
additional_vim_regex_highlighting = false,
|
||
|
}
|
||
|
}
|
||
|
end
|