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, },