From a5e8bbeb9d79d905a193e95a39acd29bc37e6c66 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 16 Sep 2026 08:47:13 +0200 Subject: Updated dotfiles --- neovim/.config/nvim/lua/plugins/indent-detect.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 neovim/.config/nvim/lua/plugins/indent-detect.lua (limited to 'neovim/.config/nvim/lua/plugins/indent-detect.lua') diff --git a/neovim/.config/nvim/lua/plugins/indent-detect.lua b/neovim/.config/nvim/lua/plugins/indent-detect.lua new file mode 100644 index 0000000..945769c --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/indent-detect.lua @@ -0,0 +1,8 @@ +-- Detects each buffer's actual indentation/spacing on open and sets +-- shiftwidth/tabstop/expandtab to match, rather than relying solely on +-- ftplugin defaults (e.g. ftplugin/python.lua) or global options.opt. +return { + "nmac427/guess-indent.nvim", + event = { "BufReadPost", "BufNewFile" }, + opts = {}, +} -- cgit v1.3