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

14 lines
299 B
Lua

local M = {}
function M.setHardtabs()
vim.cmd([[setlocal noet ts=8 sts=0 sw=0]])
end
---@param width number
function M.setSofttabs(width, isLocal)
isLocal = (isLocal or false) and "local" or ""
vim.cmd(string.format("set%s et ts=%s sts=0 sw=%s", isLocal, width, width))
end
return M