1
0
Fork 0

spider: initial setup

This commit is contained in:
Felipe 2023-09-22 23:16:35 -03:00
parent b7820a7571
commit 14452344b4
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk
3 changed files with 13 additions and 0 deletions

4
.gitmodules vendored
View file

@ -129,3 +129,7 @@
path = pack/general/start/nvim-surround
url = https://github.com/kylechui/nvim-surround
branch = main
[submodule "pack/general/start/nvim-spider"]
path = pack/general/start/nvim-spider
url = https://github.com/chrisgrieser/nvim-spider
branch = main

View file

@ -612,3 +612,11 @@ vim.diagnostic.config({
---- nvim-surround
require("nvim-surround").setup()
--- nvim-spider
-- we need to use the ex-command version to cal the commands to allow dot repeatability
-- see: https://github.com/chrisgrieser/nvim-spider#installation
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" })

@ -0,0 +1 @@
Subproject commit be7273858d75673a0ae594552742eb8769f35d6a