nvim: Only start ltex LSP if spellchecking enabled

Since ltex-lsp eats quite a lot of resources and takes a while to start
up we don't always want it enabled for every prose file. This commit
ensures that it only starts up when spellchecking is enabled for a
buffer (through the custom user command `SpellToggle`).
This commit is contained in:
Marty Oehme 2024-06-27 17:20:35 +02:00
parent 9ded34f73c
commit e6497a2241
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 22 additions and 3 deletions

View file

@ -182,8 +182,6 @@ local prose_plugs = {
{
"barreiroleo/ltex_extra.nvim",
branch = "dev",
ft = writing_ft,
opts = {},
},
}