mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 11:19:02 +02:00
fix(hipatterns): remove assert. Fixes #1045
This commit is contained in:
parent
a981682603
commit
6d58f1dacf
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ M.plugin = {
|
||||||
local match = m.full_match
|
local match = m.full_match
|
||||||
---@type string, number
|
---@type string, number
|
||||||
local color, shade = match:match("[%w-]+%-([a-z%-]+)%-(%d+)")
|
local color, shade = match:match("[%w-]+%-([a-z%-]+)%-(%d+)")
|
||||||
shade = assert(tonumber(shade))
|
shade = tonumber(shade)
|
||||||
local bg = vim.tbl_get(M.colors, color, shade)
|
local bg = vim.tbl_get(M.colors, color, shade)
|
||||||
if bg then
|
if bg then
|
||||||
local hl = "MiniHipatternsTailwind" .. color .. shade
|
local hl = "MiniHipatternsTailwind" .. color .. shade
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue