summaryrefslogtreecommitdiffstats
path: root/lua/core/misc.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2025-05-18 13:03:31 -0500
committerSquibid <me@zacharyscheiman.com>2025-05-18 13:03:31 -0500
commit450750835a01f64377434d6be0c7869ca59b7574 (patch)
treee957a9612b3a3425200856be6656fff5cff9543a /lua/core/misc.lua
parent77130d61af1e88855e273d042714f90323e04edf (diff)
downloadnvim-450750835a01f64377434d6be0c7869ca59b7574.tar.gz
nvim-450750835a01f64377434d6be0c7869ca59b7574.tar.bz2
nvim-450750835a01f64377434d6be0c7869ca59b7574.zip
need I say what type of commit this is?
*kitchen sink*
Diffstat (limited to 'lua/core/misc.lua')
-rw-r--r--lua/core/misc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/core/misc.lua b/lua/core/misc.lua
index d9c8613..fab3258 100644
--- a/lua/core/misc.lua
+++ b/lua/core/misc.lua
@@ -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"