mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
ref(nvim): reformat using the all mighty lsp ✨
This commit is contained in:
parent
88a5ea7267
commit
bc9b520671
12 changed files with 147 additions and 152 deletions
|
|
@ -1,38 +1,34 @@
|
|||
require('nvim-treesitter.configs').setup {
|
||||
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>",
|
||||
},
|
||||
},
|
||||
"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,
|
||||
|
|
@ -41,5 +37,4 @@ require('nvim-treesitter.configs').setup {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue