diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index 9fe3548..5c0d7bc 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -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({ - -- [''] = 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({ - -- [''] = cmp.mapping.confirm({ select = false }), - }), - }) end, }, @@ -337,7 +302,7 @@ return { colors = { path = '#aaffff', -- 路径的颜色,比如#ababab file_name = '#bbbbff', -- 文件名称的颜色,比如#acacac - symbols = '', -- 函数颜色 + symbols = '#aaffaa', -- 函数颜色 }, -- 图标配置