1
0
Fork 0
dotfiles/home/config/nvim/nifoc/line-style.fnl

9 lines
248 B
Text
Raw Permalink Normal View History

2022-04-05 19:57:44 +00:00
(let [mod {}]
(fn mod.maybe-set-relativenumber [value]
(let [toggle-style vim.b.toggle_line_style
toggle? (or (= toggle-style nil) (= toggle-style 1))]
(when toggle?
(set vim.opt_local.relativenumber value))))
mod)