Skip to content

Commit

Permalink
fix #36
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Feb 4, 2022
1 parent c9948c0 commit 5cd692b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lspkind/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ local modes = {
-- default true
-- deprecated
local function opt_with_text(opts)
vim.api.nvim_command("echoerr 'DEPRECATED replaced by mode option.'")
return opts == nil or opts['with_text'] == nil or opts['with_text']
end

Expand All @@ -120,6 +119,9 @@ local function opt_preset(opts)
end

function lspkind.init(opts)
if opts['with_text'] ~= nil then
vim.api.nvim_command("echoerr 'DEPRECATED replaced by mode option.'")
end
local preset = opt_preset(opts)

local symbol_map = kind_presets[preset]
Expand Down

0 comments on commit 5cd692b

Please sign in to comment.