Add thesaurus function to nvim

Added thesaurus calling on leader-zt, for word under cursor or selected
word(s). Will go through variety of online api's or locally supplied
mthesaur.txt from project gutenberg.
This commit is contained in:
Marty Oehme 2020-02-11 17:17:47 +01:00
parent 9fe4e5aab9
commit 347ef4e41f
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
5 changed files with 35 additions and 10 deletions

View file

@ -0,0 +1,11 @@
" remove default keymappings
let g:tq_map_keys=0
" set custom mthesaur file if we have it
if exists("$XDG_CONFIG_HOME")
let g:tq_mthesaur_file=getenv("XDG_CONFIG_HOME") . "/nvim/thesaurus/mthesaur.txt"
else
let g:tq_mthesaur_file=expand("~/.config/nvim/thesaurus/mthesaur.txt")
endif
let g:tq_language=['en', 'de']