chore(nvim): projectionist config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Rob Watson 2024-12-03 09:15:11 +01:00
parent ac910375d6
commit 3c8fa4795e
2 changed files with 25 additions and 8 deletions

32
nvimrc
View File

@ -303,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

View File

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