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" vim.opt.completeopt = "menuone,noselect"
local lspkind = require "lspkind" local lspkind = require "plugins.configs.lspkind_icons"
local luasnip = require "luasnip" local luasnip = require "luasnip"
-- nvim-cmp setup -- nvim-cmp setup
@ -13,7 +13,8 @@ cmp.setup {
}, },
formatting = { formatting = {
format = function(entry, vim_item) 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 = ({ vim_item.menu = ({
nvim_lsp = "[LSP]", 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, end,
} }
use { -- use {
"onsails/lspkind-nvim", -- "onsails/lspkind-nvim",
disable = not plugin_status.lspkind, -- disable = not plugin_status.lspkind,
after = "LuaSnip", -- after = "LuaSnip",
config = function() -- config = function()
require("plugins.configs.others").lspkind() -- require("plugins.configs.others").lspkind()
end, -- end,
} -- }
--
use { use {
"jdhao/better-escape.vim", "jdhao/better-escape.vim",
disable = not plugin_status.esc_insertmode, disable = not plugin_status.esc_insertmode,
@ -198,7 +198,7 @@ return packer.startup(function()
config = function() config = function()
require "plugins.configs.cmp" require "plugins.configs.cmp"
end, end,
after = "lspkind-nvim", after = "LuaSnip",
} }
use { use {