23 lines
627 B
Lua
23 lines
627 B
Lua
-- treesitter.lua
|
|
require('nvim-treesitter.configs').setup {
|
|
-- Install these parsers by default
|
|
ensure_installed = {
|
|
"lua", "vim", "vimdoc", "javascript", "typescript", "python", "rust",
|
|
"go", "html", "css", "json", "yaml", "toml", "markdown", "bash"
|
|
},
|
|
auto_install = true, -- Automatically install missing parsers
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
indent = { enable = true },
|
|
incremental_selection = {
|
|
enable = true,
|
|
keymaps = {
|
|
init_selection = "<CR>",
|
|
node_incremental = "<CR>",
|
|
node_decremental = "<BS>",
|
|
},
|
|
},
|
|
}
|