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:
parent
80ecf5578e
commit
5f39dbc80b
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue