feat: add cmdline history and prompt completion sources
This commit is contained in:
@@ -44,6 +44,10 @@ M.cmp = {
|
|||||||
"onsails/lspkind.nvim",
|
"onsails/lspkind.nvim",
|
||||||
"hrsh7th/cmp-emoji",
|
"hrsh7th/cmp-emoji",
|
||||||
"hrsh7th/cmp-cmdline",
|
"hrsh7th/cmp-cmdline",
|
||||||
|
"dmitmel/cmp-cmdline-history",
|
||||||
|
"teramako/cmp-cmdline-prompt.nvim",
|
||||||
|
"mtoohey31/cmp-fish",
|
||||||
|
"vim-dadbod-completion",
|
||||||
{
|
{
|
||||||
"chrisgrieser/cmp_yanky",
|
"chrisgrieser/cmp_yanky",
|
||||||
option = {
|
option = {
|
||||||
|
|||||||
+7
-3
@@ -28,7 +28,6 @@ return {
|
|||||||
|
|
||||||
local border_opts = {
|
local border_opts = {
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
winhighlight = "Normal:NormalFloat,FloatBorder:FloatBorder,CursorLine:PmenuSel,Search:None",
|
|
||||||
}
|
}
|
||||||
local window_opts = {
|
local window_opts = {
|
||||||
completion = cmp.config.window.bordered(border_opts),
|
completion = cmp.config.window.bordered(border_opts),
|
||||||
@@ -77,8 +76,8 @@ return {
|
|||||||
{ name = "dotenv" },
|
{ name = "dotenv" },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
{ name = "conventionalcommits" },
|
{ name = "conventionalcommits" },
|
||||||
{ name = "gitmoji" },
|
{ name = "gitmoji", priority = 9998 },
|
||||||
{ name = "emoji" },
|
{ name = "emoji", priority = 9999 },
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
fields = { "abbr", "kind", "menu" },
|
fields = { "abbr", "kind", "menu" },
|
||||||
@@ -112,6 +111,8 @@ return {
|
|||||||
ignore_cmds = { "Man", "!" },
|
ignore_cmds = { "Man", "!" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
}, { name = "cmp-cmdline-history" }, {
|
||||||
|
name = "cmp-cmdline-prompt",
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -119,6 +120,9 @@ return {
|
|||||||
cmp.setup.filetype("cmdline", {
|
cmp.setup.filetype("cmdline", {
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "cmdline" }, -- Ensure 'cmdline' source is available
|
{ name = "cmdline" }, -- Ensure 'cmdline' source is available
|
||||||
|
{ name = "path" },
|
||||||
|
{ name = "cmp-cmdline-history" },
|
||||||
|
{ name = "cmp-cmdline-prompt" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user