diff --git a/lua/astrocommunity/completion/cmp-spell/README.md b/lua/astrocommunity/completion/cmp-spell/README.md new file mode 100644 index 000000000..f9a60496c --- /dev/null +++ b/lua/astrocommunity/completion/cmp-spell/README.md @@ -0,0 +1,5 @@ +# cmp-spell + +spell source for nvim-cmp based on vim's spellsuggest. + +**Repository:** diff --git a/lua/astrocommunity/completion/cmp-spell/init.lua b/lua/astrocommunity/completion/cmp-spell/init.lua new file mode 100644 index 000000000..1ef88ac27 --- /dev/null +++ b/lua/astrocommunity/completion/cmp-spell/init.lua @@ -0,0 +1,9 @@ +return { + "hrsh7th/nvim-cmp", + optional = true, + dependencies = { "f3fora/cmp-spell", lazy = true }, + opts = function(_, opts) + opts.sources = opts.sources or {} + table.insert(opts.sources, { name = "spell" }) + end, +}