aboutsummaryrefslogtreecommitdiffstats
path: root/neovim/.config/nvim/lua/plugins/indent-detect.lua
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2026-09-16 08:47:13 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2026-09-16 08:47:13 +0200
commita5e8bbeb9d79d905a193e95a39acd29bc37e6c66 (patch)
tree5b42d54e6b91d454bcbac89f7aac42b0863a869d /neovim/.config/nvim/lua/plugins/indent-detect.lua
parent6906a9d55928c6250ff106d041b73fdd1ac8aae6 (diff)
downloaddotfiles-a5e8bbeb9d79d905a193e95a39acd29bc37e6c66.tar.gz
dotfiles-a5e8bbeb9d79d905a193e95a39acd29bc37e6c66.tar.bz2
dotfiles-a5e8bbeb9d79d905a193e95a39acd29bc37e6c66.zip
Updated dotfiles
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/indent-detect.lua')
-rw-r--r--neovim/.config/nvim/lua/plugins/indent-detect.lua8
1 files changed, 8 insertions, 0 deletions
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 @@
1-- Detects each buffer's actual indentation/spacing on open and sets
2-- shiftwidth/tabstop/expandtab to match, rather than relying solely on
3-- ftplugin defaults (e.g. ftplugin/python.lua) or global options.opt.
4return {
5 "nmac427/guess-indent.nvim",
6 event = { "BufReadPost", "BufNewFile" },
7 opts = {},
8}