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:
committed by
GitHub
parent
f262e7d56d
commit
f58b0d4dd1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user