Files
2026-06-29 22:59:52 +02:00

34 lines
790 B
Lua

require'nvim-treesitter'.setup {
-- A list of parser names, or "all"
ensure_installed = { "python" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Automatically install missing parsers when entering buffer
auto_install = true,
-- List of parsers to ignore installing (for "all")
ignore_install = { },
highlight = {
enable = true,
disable = { "" },
additional_vim_regex_highlighting = false,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<c-space>',
node_incremental = '<c-space>',
scope_incremental = '<c-s>',
node_decremental = '<M-space>',
},
},
-- https://github.com/windwp/nvim-ts-autotag
autotag = {
enable = true,
},
}