need I say what type of commit this is?

*kitchen sink*
This commit is contained in:
2025-05-18 13:03:31 -05:00
parent 77130d61af
commit 450750835a
9 changed files with 752 additions and 48 deletions

View File

@ -53,10 +53,7 @@ local function attach(bufnr)
map("n", "gr", function() vim.lsp.buf.references(nil, list_opts) end, opts)
map("n", "<S-Tab>", function() vim.lsp.buf.signature_help(signature_opts) end, opts)
map("n", { "<leader>r", "<F2>" }, vim.lsp.buf.rename, opts)
map("n", { "gA", "<F4>" }, vim.lsp.buf.code_action, {
buffer = bufnr,
desc = "check code actions",
})
map("n", { "gA", "<F4>" }, vim.lsp.buf.code_action, opts)
-- Diagnostics
map("n", "[d", function()
@ -67,6 +64,7 @@ local function attach(bufnr)
end, opts)
end
--- setup vim lsp options
function M.setup()
vim.diagnostic.config {
virtual_text = false,
@ -81,7 +79,7 @@ function M.setup()
[vim.diagnostic.severity.ERROR] = "x",
[vim.diagnostic.severity.WARN] = "!",
[vim.diagnostic.severity.INFO] = "i",
[vim.diagnostic.severity.HINT] = "h",
[vim.diagnostic.severity.HINT] = "h"
}
}
}

View File

@ -114,7 +114,7 @@ function M.cpyhl(hlgroup, namespace)
return {}
end
for _, key in pairs({"foreground", "background", "special"}) do
for _, key in pairs({ "foreground", "background", "special" }) do
if hl[key] then
hl[key] = string.format("#%06x", hl[key])
end
@ -123,7 +123,6 @@ function M.cpyhl(hlgroup, namespace)
end
--- highlight something with some highlight group for a certain amount of time
---@param opts table? options
--- example:
--- ```lua
--- {
@ -145,6 +144,7 @@ end
--- ```
--- opts is optional and if empty will simply highlight the current line for
--- 250ms using IncSearch as the highlight group
---@param opts table? options
function M.timeout_highlight(opts)
opts = opts or {}
opts.hl = opts.hl or "IncSearch"