Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(neodim): support v2 #739

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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