nvim.d/nvim/lua/plugins/config/treesitter.lua
Dan Anglin 746f07efdb
feat: add treesitter highlighting for gotmpl
Add detection, treesitter highlighting, and tab spacing settings for
gotmpl files.
2024-08-21 18:39:42 +01:00

28 lines
397 B
Lua

local ok, treesitter = pcall(require, "nvim-treesitter.configs")
if not ok then
return
end
treesitter.setup {
ensure_installed = {
"bash",
"go",
"gomod",
"gosum",
"gotmpl",
"hcl",
"json",
"lua",
"make",
"python",
"yaml",
"terraform",
"vimdoc",
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}