Skip to content

Commit

Permalink
feat(neodim): support v2 (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy authored May 16, 2023
1 parent 4796cd1 commit 770810b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions lua/modules/configs/ui/neodim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ return function()
require("neodim").setup({
alpha = 0.45,
blend_color = blend_color,
update_in_insert = {
enable = true,
delay = 100,
},
refresh_delay = 75, -- time in ms to wait after typing before refreshing diagnostics
hide = {
virtual_text = true,
signs = false,
underline = false,
},
priority = 80,
disable = { "big_file_disabled_ft" },
})
end
4 changes: 2 additions & 2 deletions lua/modules/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ function M.hl_to_rgb(hl_group, use_bg, fallback_hl)
if hlexists then
local result = vim.api.nvim_get_hl(0, { name = hl_group, link = false })
if use_bg then
hex = result.bg and result.bg or "NONE"
hex = result.bg and string.format("#%06x", result.bg) or "NONE"
else
hex = result.fg and result.fg or "NONE"
hex = result.fg and string.format("#%06x", result.fg) or "NONE"
end
end

Expand Down

0 comments on commit 770810b

Please sign in to comment.