pechorin / any-jump.vim

Jump to any definition and references 👁 IDE madness without overhead 🚀
1.08k stars 40 forks source link

"not found map definition for filetype 'cpp'" #2

Closed wbthomason closed 4 years ago

wbthomason commented 4 years ago

As the title indicates, I get this error while attempting to use the plugin in a C++ file. Looking at the code in generator/ it appears that you've generated regexes for a possible c++ filetype, but Neovim uses cpp as the filetype for C++ files. This may also be an issue for other languages with a similar difference in language name and filetype name.

wookayin commented 4 years ago

Same issue for python. Vim uses python but rg expects --type py for python files. We should have a hard-coded mapping from vim-filetype names and to rg-filetype names.

pechorin commented 4 years ago

Thanks for report, i will fix it with providing language names aliases

pechorin commented 4 years ago

@wbthomason cpp fixed :)

pechorin commented 4 years ago

@wookayin python also fixed. Please update plugin and try .)

pechorin commented 4 years ago

fixed in https://github.com/pechorin/any-jump.nvim/commit/dd466a688a2f321b097d6563244224b41ec3bdfa; please update plugin