mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
ref(nvim): sorted configs into modules
This commit is contained in:
parent
5632160e50
commit
2a601dd621
15 changed files with 212 additions and 224 deletions
45
.config/nvim/lua/treesitter-cfg/init.lua
Normal file
45
.config/nvim/lua/treesitter-cfg/init.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
require('nvim-treesitter.configs').setup {
|
||||
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
||||
ensure_installed = {
|
||||
"c",
|
||||
"cpp",
|
||||
"lua",
|
||||
"vim",
|
||||
"help",
|
||||
"rust",
|
||||
"scala",
|
||||
"python"
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
-- set to `false` to disable one of the mappings
|
||||
init_selection = "false",
|
||||
scope_incremental = "false",
|
||||
node_incremental = "<A-Up>",
|
||||
node_decremental = "<A-Down>",
|
||||
},
|
||||
},
|
||||
refactor = {
|
||||
smart_rename = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
smart_rename = "grr"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue