From a89e7efdee8d809ca136962b6095eccd3ad3e7d7 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 26 Aug 2024 18:54:52 +0200 Subject: [PATCH] nvim: autocomplete: better context for spell completions --- nvim/lua/user/plugins/editor/autocomplete.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/user/plugins/editor/autocomplete.lua b/nvim/lua/user/plugins/editor/autocomplete.lua index 50f40cf..c12a04f 100644 --- a/nvim/lua/user/plugins/editor/autocomplete.lua +++ b/nvim/lua/user/plugins/editor/autocomplete.lua @@ -67,7 +67,7 @@ return { option = { keep_all_entries = false, enable_in_context = function() - return true + return require('cmp.config.context').in_treesitter_capture('spell') end, preselect_correct_word = true, },