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

8 lines
248 B
Fennel

(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)