Compare commits

...

4 Commits

Author SHA1 Message Date
Rob Watson 3c8fa4795e chore(nvim): projectionist config
continuous-integration/drone/push Build is passing Details
2024-12-03 09:15:23 +01:00
Rob Watson ac910375d6 feat(nvim): replace vim-wordmotion with nvim-spider 2024-12-03 09:15:23 +01:00
Rob Watson ea32b61f86 chore(nvim): remove pastetoggle 2024-12-03 09:15:23 +01:00
Rob Watson 53bdb5b256 fix(nvim): typo 2024-12-03 09:15:23 +01:00
4 changed files with 49 additions and 11 deletions

37
nvimrc
View File

@ -76,7 +76,6 @@ set dictionary=/usr/share/dict/words
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
set shortmess+=I set shortmess+=I
set updatetime=250 set updatetime=250
set pastetoggle=<f2>
set pumheight=200 set pumheight=200
" Required for nvim-compe: " Required for nvim-compe:
set complete-=i 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-surround " https://github.com/tpope/vim-surround.git
packadd! vim-rhubarb " https://github.com/tpope/vim-rhubarb.git packadd! vim-rhubarb " https://github.com/tpope/vim-rhubarb.git
packadd! editorconfig-vim " https://github.com/editorconfig/editorconfig-vim.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 " projectionist
packadd! vim-projectionist " https://github.com/tpope/vim-projectionist.git 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 = { let g:projectionist_heuristics = {
\ "*.go": { \ "*.go": {
\ "*_test.go": { \ "*_test.go": {
\ "type": "source", \ "type": "source",
\ "alternate": "{}.go", \ "alternate": "{}.go",
\ }, \ },
\ "*.go": { \ "*.go": {
\ "type": "source", \ "type": "source",
\ "alternate": "{}_test.go", \ "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 " aerial
packadd! aerial.nvim " https://github.com/stevearc/aerial.nvim.git packadd! aerial.nvim " https://github.com/stevearc/aerial.nvim.git

View File

@ -6,5 +6,4 @@ require("aerial").setup({
autojump = true, autojump = true,
nerd_font = "auto", nerd_font = "auto",
}) })
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
vim.keymap.set("n", "<leader>ds", "<cmd>call aerial#fzf()<CR>") vim.keymap.set("n", "<leader>ds", "<cmd>call aerial#fzf()<CR>")

20
vim/lua/spider_config.lua Normal file
View File

@ -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" }
)

2
zshenv
View File

@ -19,7 +19,7 @@ export LS_COLORS="di=1;38;2;38;139;210:mi=1;38;2;220;50;47;48;2;238;232;213:ln=1
export GOPATH=$HOME/go export GOPATH=$HOME/go
# BAT: # BAT:
export BAT_THEME=gruxbox-dark export BAT_THEME=gruvbox-dark
# Postgres default user: # Postgres default user:
export PGUSER=postgres export PGUSER=postgres