auto up 17:06:41 up 0:01, 2 users, load average: 0.30, 0.13, 0.05

This commit is contained in:
2025-11-07 17:06:43 +01:00
parent 98bcb5f285
commit 067c267e26
2 changed files with 32 additions and 27 deletions

View File

@@ -21,6 +21,15 @@ vim.api.nvim_create_autocmd("FileType", {
end, end,
}) })
vim.api.nvim_create_autocmd("FileType", {
pattern = "c",
callback = function()
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2
vim.bo.expandtab = true
end,
})
vim.api.nvim_create_augroup("RememberFolds", { vim.api.nvim_create_augroup("RememberFolds", {
clear = true clear = true
}) })

View File

@@ -30,8 +30,4 @@ vim.opt.fillchars = "fold:╌"
vim.g.GPGDefaultRecipients = {"C6772451703DE183A4983CBA063DC054484835A6"} vim.g.GPGDefaultRecipients = {"C6772451703DE183A4983CBA063DC054484835A6"}
vim.o.expandtab = true -- Use spaces instead of tabs vim.o.expandtab = true -- Use spaces instead of tabs
vim.o.shiftwidth = 4 -- Number of spaces per indentation
vim.o.tabstop = 4 -- Number of spaces a tab counts for
vim.o.smarttab = true -- Insert 'shiftwidth' spaces when pressing Tab vim.o.smarttab = true -- Insert 'shiftwidth' spaces when pressing Tab
vim.o.autoindent = true -- Maintain indent of current line
vim.o.smartindent = true -- Smart auto-indenting