tpope / vim-projectionist

projectionist.vim: Granular project configuration
https://www.vim.org/scripts/script.php?script_id=4989
1.06k stars 67 forks source link

Alternate commands (:A, :AS, :AV, etc.) don't perform expectedly (ag is not found, E492: Not an editor command: AS, etc.) #168

Closed synthead closed 2 years ago

synthead commented 2 years ago

After following the installation section verbatim, when I do...

:A

...I get:

ag is not found

This seems to be solved by installing the the_silver_searcher package on Arch, but when I do that, :A seems to bring up a fuzzy finder instead of opening the alternate file.

Also, if I call...

:AS

...I get:

E492: Not an editor command: AS

I'm not sure why this isn't working. I don't use a plugin manager, but the installation section does mention "Vim's built-in package support", so I assume nothing has to be installed.

synthead commented 2 years ago

Well shit, it looks like this is happening because of a typo in a blog post I was following: https://www.dev-log.me/Jump_between_test_files_and_implementation_in_Vim/

They instruct the user to create:

.projectionist.json

...but we really should create:

.projections.json

While I seem to have fixed the problem after a bit of digging, it would be really nice if this plugin raised an error or something if the plugin is loaded but projection mappings are not defined :wink:

tpope commented 2 years ago

¯\_(ツ)_/¯