From 18749ddf848acf9b3199be75f9f16588dda43bfb Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 8 Sep 2026 07:14:29 +0200 Subject: Konfiguration vereinfacht --- nvim/ftplugin/c.lua | 3 +++ nvim/ftplugin/cpp.lua | 1 + nvim/ftplugin/json.lua | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 nvim/ftplugin/c.lua create mode 100644 nvim/ftplugin/cpp.lua (limited to 'nvim/ftplugin') diff --git a/nvim/ftplugin/c.lua b/nvim/ftplugin/c.lua new file mode 100644 index 0000000..0f49bf6 --- /dev/null +++ b/nvim/ftplugin/c.lua @@ -0,0 +1,3 @@ +local opt = vim.opt_local + +opt.cindent = true diff --git a/nvim/ftplugin/cpp.lua b/nvim/ftplugin/cpp.lua new file mode 100644 index 0000000..de0f9de --- /dev/null +++ b/nvim/ftplugin/cpp.lua @@ -0,0 +1 @@ +vim.cmd.runtime("ftplugin/c.lua") diff --git a/nvim/ftplugin/json.lua b/nvim/ftplugin/json.lua index 73b5935..341b728 100644 --- a/nvim/ftplugin/json.lua +++ b/nvim/ftplugin/json.lua @@ -1,3 +1,3 @@ -- Standard-Dateityp für .json-Dateien ist "jsonc" (siehe lua/config/filetypes.lua). -- Buffer, deren Dateityp explizit "json" ist, erben dieselben Einstellungen. -vim.cmd("runtime! ftplugin/jsonc.lua") +vim.cmd.runtime("ftplugin/jsonc.lua") -- cgit v1.3