Compare commits
4 Commits
17e44a6338
...
3c8fa4795e
Author | SHA1 | Date |
---|---|---|
Rob Watson | 3c8fa4795e | |
Rob Watson | ac910375d6 | |
Rob Watson | ea32b61f86 | |
Rob Watson | 53bdb5b256 |
37
nvimrc
37
nvimrc
|
@ -76,7 +76,6 @@ set dictionary=/usr/share/dict/words
|
|||
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
|
||||
set shortmess+=I
|
||||
set updatetime=250
|
||||
set pastetoggle=<f2>
|
||||
set pumheight=200
|
||||
" Required for nvim-compe:
|
||||
set complete-=i
|
||||
|
@ -294,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
|
||||
|
@ -302,17 +303,35 @@ packadd! vim-projectionist " https://github.com/tpope/vim-projectionist.git
|
|||
let g:projectionist_heuristics = {
|
||||
\ "*.go": {
|
||||
\ "*_test.go": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "{}.go",
|
||||
\ "type": "source",
|
||||
\ "alternate": "{}.go",
|
||||
\ },
|
||||
\ "*.go": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "{}_test.go",
|
||||
\ "type": "source",
|
||||
\ "alternate": "{}_test.go",
|
||||
\ },
|
||||
\ "etc/rbenv.d/*.bash": {"type": "hook"}
|
||||
\ }
|
||||
\ },
|
||||
\ "*.rb": {
|
||||
\ "app/*.rb": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "spec/{}_spec.rb",
|
||||
\ },
|
||||
\ "lib/*.rb": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "spec/lib/{}_spec.rb",
|
||||
\ },
|
||||
\ "spec/*_spec.rb": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "app/{}.rb",
|
||||
\ },
|
||||
\ "spec/lib/*_spec.rb": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "lib/{}.rb",
|
||||
\ },
|
||||
\ },
|
||||
\ }
|
||||
nnoremap <leader>A :A<cr>
|
||||
nnoremap <leader>a :A<cr>
|
||||
nnoremap <leader>A :AV<cr>
|
||||
|
||||
" aerial
|
||||
packadd! aerial.nvim " https://github.com/stevearc/aerial.nvim.git
|
||||
|
|
|
@ -6,5 +6,4 @@ require("aerial").setup({
|
|||
autojump = true,
|
||||
nerd_font = "auto",
|
||||
})
|
||||
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
|
||||
vim.keymap.set("n", "<leader>ds", "<cmd>call aerial#fzf()<CR>")
|
||||
|
|
|
@ -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