This commit is contained in:
Alexander Navarro 2023-04-07 20:27:11 -04:00
parent 65b6905417
commit 4197317adf
5 changed files with 156 additions and 124 deletions

View file

@ -1,5 +1,6 @@
return { return {
"ThePrimeagen/harpoon", "ThePrimeagen/harpoon",
lazy = false,
config = function() config = function()
require("harpoon").setup({ require("harpoon").setup({
global_settings = { global_settings = {

View file

@ -36,4 +36,26 @@ return {
}) })
end, end,
}, },
{
"chrisgrieser/nvim-various-textobjs",
lazy = false,
opts = { useDefaultKeymaps = true },
},
{
"RRethy/nvim-treesitter-textsubjects",
lazy = false,
config = function()
require("nvim-treesitter.configs").setup({
textsubjects = {
enable = true,
prev_selection = ",", -- (Optional) keymap to select the previous selection
keymaps = {
["."] = "textsubjects-smart",
[";"] = "textsubjects-container-outer",
["i;"] = "textsubjects-container-inner",
},
},
})
end,
},
} }

View file

@ -8,7 +8,6 @@ return {
"fixjson", "fixjson",
"gitlint", "gitlint",
"intelephense", "intelephense",
"luacheck",
"markdownlint", "markdownlint",
"php-cs-fixer", "php-cs-fixer",
"prettierd", "prettierd",

View file

@ -0,0 +1,10 @@
return {
"chrisgrieser/nvim-spider",
event = "VeryLazy",
config = function()
vim.keymap.set({ "n", "o", "x" }, "w", "<cmd>lua require('spider').motion('w')<CR>", { desc = "Spider-w" })
vim.keymap.set({ "n", "o", "x" }, "e", "<cmd>lua require('spider').motion('e')<CR>", { desc = "Spider-e" })
vim.keymap.set({ "n", "o", "x" }, "b", "<cmd>lua require('spider').motion('b')<CR>", { desc = "Spider-b" })
vim.keymap.set({ "n", "o", "x" }, "ge", "<cmd>lua require('spider').motion('ge')<CR>", { desc = "Spider-ge" })
end,
}