Install vim-lexical for better prose support

This commit is contained in:
Danielle McLean 2024-03-11 14:34:33 +11:00
parent cc2451053f
commit 3550790042
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
2 changed files with 14 additions and 0 deletions

View file

@ -139,6 +139,16 @@ augroup glyphPalette
autocmd FileType fern g:glyph_palette#apply()
augroup END
set spelllang=en_au
g:lexical#dictionary_key = '<leader>k'
g:lexical#thesaurus = [$XDG_CACHE_HOME .. '/vim/thesaurus/mthesaur.txt']
g:lexical#thesaurus_key = '<leader>t'
augroup lexical
autocmd!
autocmd FileType markdown,mkd lexical#init()
autocmd FileType tex lexical#init()
augroup END
# Configure a statusline and tabline using vim-crystalline. I tried a bunch of
# different statusline plugins and this one, which is basically just a utility
# library for writing your *own* statusline functions, worked the best for my

View file

@ -172,6 +172,10 @@ minpac#add('fladson/vim-kitty')
# also auto-compilation and SyncTeX search support in both directions.
minpac#add('lervag/vimtex')
# Dramatically buff Vim's built-in dictionary and thesaurus features when
# editing prose, making it much more viable for that kind of work.
minpac#add('preservim/vim-lexical')
# Syntax highlighting for .neon files, like phpstan.neon. Nette is actually a
# full-blown PHP web framework and this plugin provides other Nette tooling
# too, but I don't use Nette so it's really just providing syntax for the