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 = { 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>")