summary refs log tree commit diff
path: root/.vim/lua/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/plugins.lua')
-rw-r--r--.vim/lua/plugins.lua44
1 files changed, 11 insertions, 33 deletions
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('/', {