35 lines
534 B
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",
|
|
},
|
|
},
|
|
}
|
|
)
|