diff options
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/indent-detect.lua')
| -rw-r--r-- | neovim/.config/nvim/lua/plugins/indent-detect.lua | 8 |
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. | ||
| 4 | return { | ||
| 5 | "nmac427/guess-indent.nvim", | ||
| 6 | event = { "BufReadPost", "BufNewFile" }, | ||
| 7 | opts = {}, | ||
| 8 | } | ||
