1
0
Fork 0
numbers/nvim/lua/plugins/treesitter.lua

35 lines
534 B
Lua

require("nvim-treesitter.configs").setup({
ensure_installed = {
"bash",
"css",
"go",
"gomod",
"html",
"json",
"json5",
"jsonc",
"lua",
"regex",
"scss",
"toml",
"vim",
"yaml",
},
highlight = {
enable = true,
use_languagetree = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true },
incremental_selection = { enable = true },
autopairs = { enable = true },
context_commentstring = {
enable = true,
config = {
c = "// %s",
lua = "-- %s",
},
},
}
)