Skip to content

Commit

Permalink
fix(hi!): cterm color can be set in symbol/list
Browse files Browse the repository at this point in the history
  • Loading branch information
aileot committed Nov 23, 2022
1 parent 5224259 commit 634ccf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fnl/nvim-laurel/macros.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -1261,10 +1261,12 @@
(set val.ctermbg (?. val :cterm :bg))
(when val.cterm
(set val.cterm.bg nil)))
(assert-compile (cterm-color? val.ctermfg)
(assert-compile (or (cterm-color? val.ctermfg)
(hidden-in-compile-time? val.ctermfg))
(.. "ctermfg expects 256 color, got "
(view val.ctermfg)) val)
(assert-compile (cterm-color? val.ctermbg)
(assert-compile (or (cterm-color? val.ctermbg)
(hidden-in-compile-time? val.ctermbg))
(.. "ctermbg expects 256 color, got "
(view val.ctermbg)) val)))
`(vim.api.nvim_set_hl ,(or ?ns-id 0) ,name ,val)))
Expand Down

0 comments on commit 634ccf1

Please sign in to comment.