init.lua/lua/plugin/treesitter.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
local M = {}
function M.setup()
require("nvim-treesitter.configs").setup {
ensure_installed = { "lua", "go", "gomod", "python", "yaml" },
indent = { enable = true, disable = { "python", "yaml" } },
highlight = { enable = true, additional_vim_regex_highlighting = true },
context_commentstring = { enable = true, enable_autocmd = false },
autopairs = { enable = true },
}
end
return M
|