2023-07-30 04:26:25 +02:00
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
ensure_installed = { "lua", "rust", "elm", "python", "yaml", "toml" },
|
|
|
|
auto_install = true,
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
2024-01-02 01:43:10 +01:00
|
|
|
additional_vim_regex_highlighting=true,
|
2023-07-30 04:26:25 +02:00
|
|
|
},
|
|
|
|
ident = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2024-01-02 01:43:10 +01:00
|
|
|
incremental_selection = {
|
2023-07-30 04:26:25 +02:00
|
|
|
enable = true,
|
2024-01-02 01:43:10 +01:00
|
|
|
keymaps = {
|
|
|
|
init_selection = "gnn", -- set to `false` to disable one of the mappings
|
|
|
|
node_incremental = "grn",
|
|
|
|
scope_incremental = "grc",
|
|
|
|
node_decremental = "grm",
|
|
|
|
},
|
2023-07-30 04:26:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
vim.api.nvim_set_hl(0, "@variable", { })
|
|
|
|
vim.api.nvim_set_hl(0, "@parameter", { })
|