mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
new nvim config
This commit is contained in:
parent
f087422bbf
commit
7d14948480
66 changed files with 1771 additions and 1719 deletions
18
nvim/lua/user/utils/indent.lua
Normal file
18
nvim/lua/user/utils/indent.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
local M = {}
|
||||
|
||||
function M.setHardtabs()
|
||||
-- vim.bo.expandtab = false
|
||||
-- vim.bo.tabstop = 8
|
||||
-- vim.bo.shiftwidth = 0
|
||||
-- vim.bo.softtabstop = 0
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue