From f58b0d4dd1fe42c817a864c9fd196b3e5115215f Mon Sep 17 00:00:00 2001 From: Roland Fredenhagen Date: Sat, 12 Feb 2022 22:00:21 +0100 Subject: [PATCH] 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. --- lua/telescope/builtin/internal.lua | 4 ---- 1 file changed, 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 "" local suggestions = vim.fn.spellsuggest(cursor_word)