From 81db33274b3119089873487a04a9ee00b1c4ea4f Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 15 Jun 2022 04:48:37 +0200 Subject: vim: drop lspkind, vendor in symbol mapping --- .vim/lua/plugins.lua | 44 +++++++++++--------------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) (limited to '.vim/lua/plugins.lua') diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 1ec5df0..b3cfb1f 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -350,6 +350,9 @@ require('packer').startup({function() end} -- }}} use {'neovim/nvim-lspconfig', -- {{{ + require = { + 'nvim-lua/lsp-status.nvim', + }, config = function() require('lsp').setup() end} -- }}} @@ -437,8 +440,8 @@ require('packer').startup({function() 'hrsh7th/cmp-nvim-lsp-signature-help', 'saadparwaiz1/cmp_luasnip', 'f3fora/cmp-spell', - 'onsails/lspkind-nvim', 'windwp/nvim-autopairs', + 'neovim/nvim-lspconfig', }, config = function() local cmp = require('cmp') @@ -547,9 +550,8 @@ require('packer').startup({function() }), formatting = { fields = {'kind', 'abbr', 'menu'}, - format = require('lspkind').cmp_format { - mode = 'symbol', - menu = { + format = function(entry, item) + local menus = { nvim_lsp = '░ lsp', luasnip = '░ snip', nvim_lua = '░ nvim', @@ -557,35 +559,11 @@ require('packer').startup({function() spell = '░ spell', path = '░ path', buffer = '░ buf', - }, - symbol_map = { - Text = ' ', - Method = ' ', - Function = ' ', - Constructor = ' ', - Field = ' ', - Variable = ' ', - Class = '󰄶 ', - Interface = ' ', - Module = ' ', - Property = '󱊈 ', - Unit = '󰒠 ', - Value = ' ', - Enum = ' ', - Keyword = ' ', - Snippet = ' ', - Color = ' ', - File = ' ', - Reference = ' ', - Folder = ' ', - EnumMember = ' ', - Constant = ' ', - Struct = 'פּ ', - Event = ' ', - Operator = ' ', - TypeParameter = '() ', - }, - }, + } + item.kind = package.loaded.lsp.symbols[item.kind] or '' + item.menu = menus[entry.source.name] + return item + end, }, } cmp.setup.cmdline('/', { -- cgit 1.4.1