feat(nvim): add spell source
This commit is contained in:
parent
30b5adcf86
commit
68d4c13404
@ -24,6 +24,7 @@ cmp.setup({
|
||||
rg = { symbol = " ", name = "Ripgrep", hl_group = "Ripgrep" },
|
||||
npm = { symbol = " ", name = "Npm,", hl_group = "Npm," },
|
||||
conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" },
|
||||
spell = { symbol = " ", name = "Spell", hl_group = "Spell" },
|
||||
}
|
||||
|
||||
local selection = selections[entry.source.name]
|
||||
@ -128,7 +129,7 @@ cmp.setup({
|
||||
{ name = "neorg" },
|
||||
{ name = "calc" },
|
||||
{ name = "npm", keyword_length = 2 },
|
||||
{ name = "dictionary", keyword_length = 2 },
|
||||
{ name = "spell", keyword_length = 2 },
|
||||
}),
|
||||
sorting = {
|
||||
comparators = {
|
||||
|
@ -132,6 +132,7 @@ return packer.startup({
|
||||
CmpCustomSelectionRipgrep = { fg = colors.fujiWhite, bg = colors.dragonBlue },
|
||||
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||
CmpCustomSelectionCommit = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||
CmpCustomSelectionSpell = { fg = colors.fujiWhite, bg = colors.waveRed },
|
||||
|
||||
TelescopeBorder = { bg = "NONE" },
|
||||
TelescopePromptBorder = { bg = "NONE" },
|
||||
@ -406,6 +407,7 @@ return packer.startup({
|
||||
"David-Kunz/cmp-npm",
|
||||
"lukas-reineke/cmp-rg",
|
||||
"onsails/lspkind.nvim",
|
||||
"f3fora/cmp-spell",
|
||||
},
|
||||
config = function()
|
||||
require("plugins.configs._cmp")
|
||||
|
Loading…
Reference in New Issue
Block a user