update
This commit is contained in:
parent
7c52a3c538
commit
6d0417c208
9
init.lua
9
init.lua
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 "") .. ")"
|
||||||
|
Loading…
Reference in New Issue
Block a user