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:
parent
76b57ddf14
commit
19ee1857c9
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ end
|
||||||
---@param width number
|
---@param width number
|
||||||
---@param isLocal boolean?
|
---@param isLocal boolean?
|
||||||
function M.setSofttabs(width, isLocal)
|
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",
|
vim.cmd(string.format("set%s et ts=%s sts=0 sw=%s",
|
||||||
isLocal and "local" or "", width, width))
|
isLocal and "local" or "", width, width))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue