diff options
| author | Roland Fredenhagen <dev@modprog.de> | 2022-02-12 22:00:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-13 00:00:21 +0300 |
| commit | f58b0d4dd1fe42c817a864c9fd196b3e5115215f (patch) | |
| tree | 4526bec42c5d01f4418dcafcbc199ae60c00cdb9 /lua/telescope/builtin/internal.lua | |
| parent | f262e7d56d37625613c5de0df5a933cccacf13c5 (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.lua | 4 |
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) |
