(nvim) force tabexpansion in all filetypes

This commit is contained in:
scbj
2026-01-06 13:57:38 +01:00
parent ebb0ebbfc4
commit 37e1491c0d

View File

@@ -27,10 +27,15 @@ vim.o.smartcase = true
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>") -- clear search highlight on `ESC` vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>") -- clear search highlight on `ESC`
-- set tab to 4 spaces and convert tabs to spaces -- set tab to 4 spaces and convert tabs to spaces
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function()
vim.o.tabstop = 4 vim.o.tabstop = 4
vim.o.softtabstop = 4 vim.o.softtabstop = 4
vim.o.shiftwidth = 4 vim.o.shiftwidth = 4
vim.o.expandtab = true vim.o.expandtab = true
end,
})
-- make cursor shy of window border by n lines/characters -- make cursor shy of window border by n lines/characters
vim.o.scrolloff = 8 vim.o.scrolloff = 8