diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-09-08 07:14:29 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-09-08 07:14:29 +0200 |
| commit | 18749ddf848acf9b3199be75f9f16588dda43bfb (patch) | |
| tree | c3083725e96c417ab0bbb25e779f29c8f11e8789 /nvim/ftplugin | |
| parent | 3f04ecdc38cf7d584f56e5e25d06eea9e523de15 (diff) | |
| download | dotfiles-18749ddf848acf9b3199be75f9f16588dda43bfb.tar.gz dotfiles-18749ddf848acf9b3199be75f9f16588dda43bfb.tar.bz2 dotfiles-18749ddf848acf9b3199be75f9f16588dda43bfb.zip | |
Konfiguration vereinfacht
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/c.lua | 3 | ||||
| -rw-r--r-- | nvim/ftplugin/cpp.lua | 1 | ||||
| -rw-r--r-- | nvim/ftplugin/json.lua | 2 |
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 @@ | |||
| 1 | local opt = vim.opt_local | ||
| 2 | |||
| 3 | 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 @@ | |||
| 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. |
| 3 | vim.cmd("runtime! ftplugin/jsonc.lua") | 3 | vim.cmd.runtime("ftplugin/jsonc.lua") |
