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
+2 -2
View File
@@ -5,8 +5,8 @@ local M = {}
local highlights = require "custom.highlights"
M.ui = {
theme = "gatekeeper",
theme_toggle = { "gatekeeper", "monekai" },
theme = "onedark",
theme_toggle = { "onedark", "monekai" },
hl_override = highlights.override,
hl_add = highlights.add,
+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 = {