This commit is contained in:
newbie 2023-12-28 20:31:40 +08:00
parent c2bfcb8ff8
commit 02e0806fc5

View File

@ -249,45 +249,10 @@ return {
kind.menu = " (" .. (strings[2] or "") .. ")"
return kind
end,
-- format = lspkind.cmp_format({
-- with_text = true,
-- maxwidth = 50,
-- mode = 'symbol',
-- before = function(entry, vim_item)
-- vim_item.kind = kind_icons[vim_item.kind]
-- vim_item.menu = ({
-- buffer = "[Buffer]",
-- nvim_lsp = "[LSP]",
-- })[entry.source.name]
-- return vim_item
-- end,
-- })
},
}
cmp.setup.cmdline({ '/', '?' }, {
view = {
entries = { name = 'wildmenu', separator = '|' }
},
sources = cmp.config.sources({
{ name = 'buffer' },
}),
mapping = cmp.mapping.preset.insert({
-- ['<CR>'] = cmp.mapping.confirm({ select = true }),
}),
})
cmp.setup.cmdline(':', {
view = {
entries = { name = 'wildmenu', separator = '|' }
},
sources = cmp.config.sources({
-- { name = 'buffer' },
{ name = 'cmdline' }
}),
mapping = cmp.mapping.preset.insert({
-- ['<CR>'] = cmp.mapping.confirm({ select = false }),
}),
})
end,
},
@ -337,7 +302,7 @@ return {
colors = {
path = '#aaffff', -- 路径的颜色,比如#ababab
file_name = '#bbbbff', -- 文件名称的颜色,比如#acacac
symbols = '', -- 函数颜色
symbols = '#aaffaa', -- 函数颜色
},
-- 图标配置