Ron89 / thesaurus_query.vim

Multi-language Thesaurus Query and Replacement plugin for Vim/NeoVim
http://www.vim.org/scripts/script.php?script_id=5341
Apache License 2.0
220 stars 23 forks source link

Bad var name g:tq_yarn-synsets_file #21

Closed vbauerster closed 7 years ago

vbauerster commented 7 years ago

Having this line in neovim config let g:tq_yarn-synsets_file = "~/.config/nvim/thesaurus/yarn-synsets.csv" causing following errors:

E121: Undefined variable: g:tq_yarn
E488: Trailing characters
Press ENTER or type command to continue

Maybe it worth rename g:tq_yarn-synsets_file to g:tq_yarn_synsets_file? There is no problems with g:tq_mthesaur_file for example.

Ron89 commented 7 years ago

Thanks for pointing out the issue. Suggestion is now adopted in commit d894a9b. Old variable name, as you pointed out, is impossible to be used by Vim environment, so I simply discarded it.

Try it out?

vbauerster commented 7 years ago

Confirm, it is ok now. Thank you!

Ron89 commented 7 years ago

OK, closing issue now. :)