1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 11:24:55 +02:00
dotfiles/nvim/lua/user/utils/indent_guidelines.lua

17 lines
291 B
Lua

local M = {}
function M.toggle()
user.indentGuides = not user.indentGuides
M.show(user.indentGuides)
end
---@param value boolean
function M.show(value)
local has_ibl, ibl = pcall(require, "ibl")
if has_ibl then
ibl.update { enabled = value }
end
end
return M