diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index 197bf8b..b695f92 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -139,6 +139,16 @@ augroup glyphPalette autocmd FileType fern g:glyph_palette#apply() augroup END +set spelllang=en_au +g:lexical#dictionary_key = 'k' +g:lexical#thesaurus = [$XDG_CACHE_HOME .. '/vim/thesaurus/mthesaur.txt'] +g:lexical#thesaurus_key = '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 diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index a72d360..60842d3 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -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