cmp-spell
cmp-spell copied to clipboard
Help: Load with lazy.nvim
I use lazy.nvim for all my configs.
Here is my config:
{
"hrsh7th/nvim-cmp",
dependencies = {
"f3fora/cmp-spell",
},
config = function()
local cmp = require "cmp"
-- Get the current sources
local sources = cmp.get_config().sources
-- Add the new source
table.insert(sources, {
name = "spell",
option = {
keep_all_entries = false,
enable_in_context = function()
return true
end,
preselect_correct_word = true,
},
})
-- Setup nvim-cmp with the updated sources
cmp.setup {
sources = sources,
}
end,
},
This loads the plugin, but when i ran :CmpStatus, spell is under # unavailable source names and words don't show up when I'm in a md document