remove lspkind
This commit is contained in:
parent
475a4c5f38
commit
253047747a
@ -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]",
|
||||||
|
31
lua/plugins/configs/lspkind_icons.lua
Normal file
31
lua/plugins/configs/lspkind_icons.lua
Normal 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
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user