summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/internal.lua
diff options
context:
space:
mode:
authorRoland Fredenhagen <dev@modprog.de>2022-02-12 22:00:21 +0100
committerGitHub <noreply@github.com>2022-02-13 00:00:21 +0300
commitf58b0d4dd1fe42c817a864c9fd196b3e5115215f (patch)
tree4526bec42c5d01f4418dcafcbc199ae60c00cdb9 /lua/telescope/builtin/internal.lua
parentf262e7d56d37625613c5de0df5a933cccacf13c5 (diff)
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.
Diffstat (limited to 'lua/telescope/builtin/internal.lua')
-rw-r--r--lua/telescope/builtin/internal.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua
index 8e1c9c4..1d9785b 100644
--- a/lua/telescope/builtin/internal.lua
+++ b/lua/telescope/builtin/internal.lua
@@ -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)