feat(spell_suggest): ignore spell setting (#1744)

z= works even when spell is not set. I think it would be nice if Telescope would behave the same.
This commit is contained in:
Roland Fredenhagen
2022-02-12 22:00:21 +01:00
committed by GitHub
parent f262e7d56d
commit f58b0d4dd1

View File

@@ -1154,10 +1154,6 @@ internal.autocommands = function(opts)
end
internal.spell_suggest = function(opts)
if not vim.wo.spell then
return false
end
local cursor_word = vim.fn.expand "<cword>"
local suggestions = vim.fn.spellsuggest(cursor_word)