ref(nvim): reformat using the all mighty lsp

This commit is contained in:
Léana 江 2023-02-23 12:11:02 +01:00
parent 88a5ea7267
commit bc9b520671
12 changed files with 147 additions and 152 deletions

View file

@ -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 {
}
}
}
}
})