2022-10-01 11:46:18 +00:00
|
|
|
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
configs.setup({
|
2022-10-08 10:44:11 +00:00
|
|
|
ensure_installed = { "lua", "markdown", "markdown_inline", "bash", "python", "go", "gomod", "gowork" },
|
|
|
|
ignore_install = { "" },
|
|
|
|
sync_install = false,
|
2022-10-01 11:46:18 +00:00
|
|
|
highlight = {
|
2022-10-08 10:44:11 +00:00
|
|
|
enable = true,
|
|
|
|
disable = { "css" },
|
2022-10-01 11:46:18 +00:00
|
|
|
},
|
|
|
|
autopairs = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
indent = { enable = true, disable = { "python", "css" } },
|
2022-10-08 10:44:11 +00:00
|
|
|
|
|
|
|
context_commentstring = {
|
|
|
|
enable = true,
|
|
|
|
enable_autocmd = false,
|
|
|
|
},
|
2022-10-01 11:46:18 +00:00
|
|
|
})
|