1
0
Fork 0
dotfiles/config/nvim/lua/nifoc/utils/line_style.lua

13 lines
262 B
Lua
Raw Normal View History

2021-12-06 22:35:29 +00:00
local M = {}
function M.maybe_set_relativenumber(value)
2022-03-12 19:46:27 +00:00
local toggle_line_style = vim.b.toggle_line_style
local do_toggle = toggle_line_style == nil or toggle_line_style == 1
if do_toggle then
2021-12-06 22:35:29 +00:00
vim.opt_local.relativenumber = value
end
end
return M