Skip to content

Instantly share code, notes, and snippets.

@Benricheson101
Created November 21, 2024 05:42
Show Gist options
  • Save Benricheson101/a815c0e87dba697804086ce463cbc89b to your computer and use it in GitHub Desktop.
Save Benricheson101/a815c0e87dba697804086ce463cbc89b to your computer and use it in GitHub Desktop.
local function hl_extend(name, val)
local hl = vim.api.nvim_get_hl(0, {name = name, create = true});
local new = vim.tbl_deep_extend('force', {}, hl, val)
vim.api.nvim_set_hl(0, name, new)
end
for _, type in ipairs {'Ok', 'Info', 'Hint', 'Warn', 'Error'} do
hl_extend('DiagnosticUnderline' .. type, {undercurl = true})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment