From e41673a9cae68ced42a7dab67d4544b900450019 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Mon, 11 Nov 2024 08:44:16 +0100 Subject: [PATCH] feat(nvim): add projectionist --- nvimrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nvimrc b/nvimrc index d99c0e0..2ea5a02 100644 --- a/nvimrc +++ b/nvimrc @@ -295,6 +295,24 @@ packadd! vim-rhubarb " https://github.com/tpope/vim-rhubarb.git packadd! editorconfig-vim " https://github.com/editorconfig/editorconfig-vim.git packadd! vim-wordmotion " https://github.com/chaoren/vim-wordmotion.git +" projectionist +packadd! vim-projectionist " https://github.com/tpope/vim-projectionist.git + +let g:projectionist_heuristics = { + \ "*.go": { + \ "*_test.go": { + \ "type": "source", + \ "alternate": "{}.go", + \ }, + \ "*.go": { + \ "type": "source", + \ "alternate": "{}_test.go", + \ }, + \ "etc/rbenv.d/*.bash": {"type": "hook"} + \ } + \ } +nnoremap A :A + " aerial packadd! aerial.nvim " https://github.com/stevearc/aerial.nvim.git