From 97669867212df2f5a3314db6abac2b09a02bd5fb Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 28 Nov 2024 11:26:03 +0200 Subject: [PATCH] Bash/sh now have 2 space indents --- .config/nvim/after/ftplugin/bash.lua | 5 +++++ .config/nvim/after/ftplugin/sh.lua | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .config/nvim/after/ftplugin/bash.lua create mode 100644 .config/nvim/after/ftplugin/sh.lua diff --git a/.config/nvim/after/ftplugin/bash.lua b/.config/nvim/after/ftplugin/bash.lua new file mode 100644 index 0000000..e20fbe1 --- /dev/null +++ b/.config/nvim/after/ftplugin/bash.lua @@ -0,0 +1,5 @@ +Event = 'VeryLazy' + +vim.opt_local.tabstop = 2 -- number of visual spaces per TAB +vim.opt_local.softtabstop = 2 -- number of idfk tab when editing +vim.opt_local.shiftwidth = 2 -- number of spaces to insert on tab diff --git a/.config/nvim/after/ftplugin/sh.lua b/.config/nvim/after/ftplugin/sh.lua new file mode 100644 index 0000000..e20fbe1 --- /dev/null +++ b/.config/nvim/after/ftplugin/sh.lua @@ -0,0 +1,5 @@ +Event = 'VeryLazy' + +vim.opt_local.tabstop = 2 -- number of visual spaces per TAB +vim.opt_local.softtabstop = 2 -- number of idfk tab when editing +vim.opt_local.shiftwidth = 2 -- number of spaces to insert on tab