Files
dotfiles/nvim/lua/plugins/treesitter.lua
2024-12-18 16:45:53 +01:00

26 lines
708 B
Lua

require'nvim-treesitter.configs'.setup {
ensure_installed = { "c", "lua", "python", "javascript", "markdown", "html", "css"}, -- Add languages you use
sync_install = false, -- Install parsers asynchronously
auto_install = true, -- Automatically install missing parsers
highlight = {
enable = true, -- Enable syntax highlighting
additional_vim_regex_highlighting = false, -- Avoid slow fallback regex highlighting
},
indent = {
enable = true -- Enable indentation support
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
}