Skip to content

Commit

Permalink
fix(colors): add level to hl_group
Browse files Browse the repository at this point in the history
  • Loading branch information
folke authored and sphamba committed Nov 29, 2024
1 parent c5dc99e commit 5c6d3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/smear_cursor/color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function M.get_hl_group(opts)
opts = opts or {}
local _cursor_color = cursor_color

local hl_group = ("SmearCursorNormal%s"):format(opts.inverted and "Inverted" or "", opts.level or 0)
local hl_group = ("SmearCursorNormal%s%s"):format(opts.inverted and "Inverted" or "", tostring(opts.level) or "")

-- Get the cursor color from the treesitter highlight group
-- at the cursor.
Expand Down

0 comments on commit 5c6d3ee

Please sign in to comment.