remove lspkind

This commit is contained in:
siduck76 2021-08-27 07:53:06 +05:30
parent 475a4c5f38
commit 253047747a
3 changed files with 44 additions and 12 deletions

View File

@ -1,6 +1,6 @@
vim.opt.completeopt = "menuone,noselect"
local lspkind = require "lspkind"
local lspkind = require "plugins.configs.lspkind_icons"
local luasnip = require "luasnip"
-- nvim-cmp setup
@ -13,7 +13,8 @@ cmp.setup {
},
formatting = {
format = function(entry, vim_item)
vim_item.kind = lspkind.presets.default[vim_item.kind] .. " " .. vim_item.kind
-- load lspkind icons
vim_item.kind = string.format("%s %s", lspkind.icons[vim_item.kind], vim_item.kind)
vim_item.menu = ({
nvim_lsp = "[LSP]",

View File

@ -0,0 +1,31 @@
local M = {}
M.icons = {
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 = "",
}
return M

View File

@ -161,15 +161,15 @@ return packer.startup(function()
end,
}
use {
"onsails/lspkind-nvim",
disable = not plugin_status.lspkind,
after = "LuaSnip",
config = function()
require("plugins.configs.others").lspkind()
end,
}
-- use {
-- "onsails/lspkind-nvim",
-- disable = not plugin_status.lspkind,
-- after = "LuaSnip",
-- config = function()
-- require("plugins.configs.others").lspkind()
-- end,
-- }
--
use {
"jdhao/better-escape.vim",
disable = not plugin_status.esc_insertmode,
@ -198,7 +198,7 @@ return packer.startup(function()
config = function()
require "plugins.configs.cmp"
end,
after = "lspkind-nvim",
after = "LuaSnip",
}
use {