adding a few plugins

This commit is contained in:
Miguel Palhas
2024-10-05 08:57:59 +01:00
parent 76da790a27
commit 9d235dea9d
10 changed files with 152 additions and 21 deletions
+48
View File
@@ -0,0 +1,48 @@
return {
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"JoosepAlviste/nvim-ts-context-commentstring",
"nvim-treesitter/nvim-treesitter-textobjects",
},
opts = {
ensure_installed = {
"vim",
"lua",
"vimdoc",
"html",
"css",
"rust",
"regex",
"javascript",
"typescript",
"tsx",
"solidity",
"toml",
"bash",
"markdown",
"markdown_inline",
"json",
"elixir",
"erlang",
"eex",
"kdl",
"yuck",
"sql",
"typst"
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = "<nop>",
node_decremental = "<bs>",
},
},
textobjects = {
select = { enable = true },
},
},
},
}