Add nvim-treesitter-textobjects

This commit is contained in:
2024-02-26 18:27:42 +01:00
parent 86ccf3bb2d
commit fe912ab5fb
6 changed files with 205 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
-- if you just want default config for the servers then put them in a table
local servers = { "html", "cssls", "tsserver", "clangd" }
local servers = { "html", "cssls", "tsserver", "clangd", "salt_ls" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
+9
View File
@@ -19,6 +19,15 @@ M.treesitter = {
-- "python"
-- },
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = false,
node_decremental = "<bs>",
},
},
}
M.mason = {