summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <kyren223@proton.me>2025-08-01 13:03:53 +0300
committerKyren223 <kyren223@proton.me>2025-08-01 13:03:53 +0300
commit29b889d9ac80dff6f520d2c6d211fd010e834e85 (patch)
treefbc005dc0e424ea206f9067beae0504eebafb11f
parentd507b5f49043a5c1156afcd40d225449b4ee7ef6 (diff)
C now has 2 indents instead of 4
-rw-r--r--.config/nvim/after/ftplugin/c.lua5
-rw-r--r--.config/nvim/after/ftplugin/cpp.lua5
2 files changed, 10 insertions, 0 deletions
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