mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
add nvim/lua/user/utils/whitespace.lua
This commit is contained in:
parent
9b11ccd05c
commit
ac0d102cab
1 changed files with 14 additions and 0 deletions
14
nvim/lua/user/utils/whitespace.lua
Normal file
14
nvim/lua/user/utils/whitespace.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
local M = {}
|
||||
|
||||
function M.Toggle()
|
||||
local indent = require "user.utils.indent_guidelines"
|
||||
if vim.opt.list._value then
|
||||
vim.opt.list = false
|
||||
indent.show(user.indentGuides)
|
||||
else
|
||||
vim.opt.list = true
|
||||
indent.show(false)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue