feat(nvim): replace vim-wordmotion with nvim-spider
This commit is contained in:
parent
ea32b61f86
commit
ac910375d6
4
nvimrc
4
nvimrc
|
@ -293,7 +293,9 @@ packadd! fzf.vim " https://github.com/junegunn/fzf.vim.git
|
|||
packadd! vim-surround " https://github.com/tpope/vim-surround.git
|
||||
packadd! vim-rhubarb " https://github.com/tpope/vim-rhubarb.git
|
||||
packadd! editorconfig-vim " https://github.com/editorconfig/editorconfig-vim.git
|
||||
packadd! vim-wordmotion " https://github.com/chaoren/vim-wordmotion.git
|
||||
|
||||
packadd! nvim-spider " https://github.com/chrisgrieser/nvim-spider.git
|
||||
lua require "spider_config"
|
||||
|
||||
" projectionist
|
||||
packadd! vim-projectionist " https://github.com/tpope/vim-projectionist.git
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
require('spider').setup({})
|
||||
|
||||
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" }
|
||||
)
|
Loading…
Reference in New Issue