about summary refs log tree commit diff
path: root/fnl/nvrc/macro/color.fnl
blob: d481fc9a407f7210cc4bff20ee399ba26226d889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(fn tbl? [x]
  (= :table (type x)))

(fn highlight! [group colset]
  "Add a highlighting group."
  `(vim.api.nvim_set_hl 0 ,group ,colset))

(fn link! [group link]
  "Link a highlighting group."
  (highlight! group {:link link}))

{: highlight! : link!}