From 29b889d9ac80dff6f520d2c6d211fd010e834e85 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 1 Aug 2025 13:03:53 +0300 Subject: [PATCH] C now has 2 indents instead of 4 --- .config/nvim/after/ftplugin/c.lua | 5 +++++ .config/nvim/after/ftplugin/cpp.lua | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .config/nvim/after/ftplugin/c.lua create mode 100644 .config/nvim/after/ftplugin/cpp.lua diff --git a/.config/nvim/after/ftplugin/c.lua b/.config/nvim/after/ftplugin/c.lua new file mode 100644 index 0000000..e20fbe1 --- /dev/null +++ b/.config/nvim/after/ftplugin/c.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/cpp.lua b/.config/nvim/after/ftplugin/cpp.lua new file mode 100644 index 0000000..e20fbe1 --- /dev/null +++ b/.config/nvim/after/ftplugin/cpp.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