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:
parent
9fe4e5aab9
commit
347ef4e41f
5 changed files with 35 additions and 10 deletions
11
nvim/.config/nvim/plugin/thesaurus_query.vim
Normal file
11
nvim/.config/nvim/plugin/thesaurus_query.vim
Normal 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']
|
||||
Loading…
Add table
Add a link
Reference in a new issue