diff options
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") |
