mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
refactor: simplified handler code
This commit is contained in:
parent
17d1653b4a
commit
ecf03a6892
7 changed files with 58 additions and 91 deletions
|
@ -242,8 +242,6 @@ function M:reason(reason, opts)
|
|||
end
|
||||
if key == "event" then
|
||||
value = value:match("User (.*)") or value
|
||||
elseif key == "ft" then
|
||||
value = value:match("FileType (.*)") or value
|
||||
end
|
||||
local hl = "LazyHandler" .. key:sub(1, 1):upper() .. key:sub(2)
|
||||
local icon = Config.options.ui.icons[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue