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 "") .. ")" kind.menu = " (" .. (strings[2] or "") .. ")"
return kind return kind
end, 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, end,
}, },
@ -337,7 +302,7 @@ return {
colors = { colors = {
path = '#aaffff', -- 路径的颜色,比如#ababab path = '#aaffff', -- 路径的颜色,比如#ababab
file_name = '#bbbbff', -- 文件名称的颜色,比如#acacac file_name = '#bbbbff', -- 文件名称的颜色,比如#acacac
symbols = '', -- 函数颜色 symbols = '#aaffaa', -- 函数颜色
}, },
-- 图标配置 -- 图标配置