This commit is contained in:
newbie 2024-01-06 11:19:15 +08:00
parent 7c52a3c538
commit 6d0417c208
2 changed files with 4 additions and 7 deletions

View File

@ -30,10 +30,7 @@ if G.g.vscode then
require('vscode') require('vscode')
else else
require("options") require("options")
require("lazy").setup({ require("lazy").setup(
require('plugs') require('plugs'), { lockfile = G.fn.stdpath("data") .. "/lazy/lazy-lock.json" }
}) )
end end

View File

@ -217,7 +217,7 @@ return {
formatting = { formatting = {
fields = { "kind", "abbr", "menu" }, fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item) format = function(entry, vim_item)
local kind = require("lspkind").cmp_format({ mode = "symbol_text", maxwidth = 5, })(entry, vim_item) local kind = require("lspkind").cmp_format({ mode = "symbol_text", maxwidth = 50, })(entry, vim_item)
local strings = vim.split(kind.kind, "%s", { trimempty = true }) local strings = vim.split(kind.kind, "%s", { trimempty = true })
kind.kind = " " .. (strings[1] or "") .. " " kind.kind = " " .. (strings[1] or "") .. " "
kind.menu = " (" .. (strings[2] or "") .. ")" kind.menu = " (" .. (strings[2] or "") .. ")"