1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

add nvim/lua/user/utils/indent_guidelines.lua

This commit is contained in:
Henrik Hautakoski 2025-10-16 18:47:32 +02:00
parent 514ce5fefc
commit 9b11ccd05c

View file

@ -0,0 +1,17 @@
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