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: add width parameter to setHardtabs()

This commit is contained in:
Henrik Hautakoski 2024-10-01 14:19:24 +02:00
parent 80ecf5578e
commit 5f39dbc80b

View file

@ -1,8 +1,9 @@
local M = {} local M = {}
function M.setHardtabs() function M.setHardtabs(width)
vim.cmd([[setlocal noet ts=8 sts=0 sw=0]]) width = width or 8
vim.cmd(string.format("setlocal noet ts=%s sts=0 sw=0", width))
end end
---@param width number ---@param width number