chore(nvim): projectionist config
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ac910375d6
commit
3c8fa4795e
32
nvimrc
32
nvimrc
|
@ -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
|
||||
|
|
|
@ -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>")
|
||||
|
|
Loading…
Reference in New Issue