From daab29032505d5bfaabc80766af8acdd029431c0 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 9 Jun 2026 15:37:40 -0400 Subject: [PATCH] Fix expandtab setting for newly-opened files... again --- plugin/holtrop.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/holtrop.lua b/plugin/holtrop.lua index 6f2460a..5ecfcd2 100644 --- a/plugin/holtrop.lua +++ b/plugin/holtrop.lua @@ -18,6 +18,12 @@ vim.opt.wildmode = {'list:longest'} vim.opt.splitbelow = true vim.opt.splitright = true vim.g.editorconfig = false +-- Following are also set in the BufReadPost autocommand below +vim.opt.expandtab = true +vim.opt.ts = 4 +vim.opt.sw = 4 +vim.opt.sts = 4 +vim.opt.cinoptions = ":0,g0" local holtrop_bufread_group = vim.api.nvim_create_augroup("holtrop_bufread_group", { clear = true })