1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/utils/indent.lua: in setSofttabs default to local

This commit is contained in:
Henrik Hautakoski 2025-10-16 18:48:28 +02:00
parent 76b57ddf14
commit 19ee1857c9

View file

@ -10,7 +10,7 @@ end
---@param width number
---@param isLocal boolean?
function M.setSofttabs(width, isLocal)
isLocal = isLocal or false
isLocal = isLocal or true
vim.cmd(string.format("set%s et ts=%s sts=0 sw=%s",
isLocal and "local" or "", width, width))
end