aboutsummaryrefslogtreecommitdiff
path: root/nvim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/ftplugin')
-rw-r--r--nvim/ftplugin/c.lua3
-rw-r--r--nvim/ftplugin/cpp.lua1
-rw-r--r--nvim/ftplugin/json.lua2
3 files changed, 5 insertions, 1 deletions
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 @@
1local opt = vim.opt_local
2
3opt.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 @@
1-- Standard-Dateityp für .json-Dateien ist "jsonc" (siehe lua/config/filetypes.lua). 1-- Standard-Dateityp für .json-Dateien ist "jsonc" (siehe lua/config/filetypes.lua).
2-- Buffer, deren Dateityp explizit "json" ist, erben dieselben Einstellungen. 2-- Buffer, deren Dateityp explizit "json" ist, erben dieselben Einstellungen.
3vim.cmd("runtime! ftplugin/jsonc.lua") 3vim.cmd.runtime("ftplugin/jsonc.lua")