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 = {
|
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
|
||||||
|
|
|
@ -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>")
|
||||||
|
|
Loading…
Reference in New Issue