diff options
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/json.lua | 8 | ||||
| -rw-r--r-- | nvim/ftplugin/jsonc.lua | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/nvim/ftplugin/json.lua b/nvim/ftplugin/json.lua index 341b728..a6321ff 100644 --- a/nvim/ftplugin/json.lua +++ b/nvim/ftplugin/json.lua | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | -- Standard-Dateityp für .json-Dateien ist "jsonc" (siehe lua/config/filetypes.lua). | 1 | local opt = vim.opt_local |
| 2 | -- Buffer, deren Dateityp explizit "json" ist, erben dieselben Einstellungen. | 2 | |
| 3 | vim.cmd.runtime("ftplugin/jsonc.lua") | 3 | opt.expandtab = true |
| 4 | opt.shiftwidth = 2 | ||
| 5 | opt.tabstop = 2 | ||
diff --git a/nvim/ftplugin/jsonc.lua b/nvim/ftplugin/jsonc.lua index a6321ff..4c9fd66 100644 --- a/nvim/ftplugin/jsonc.lua +++ b/nvim/ftplugin/jsonc.lua | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | local opt = vim.opt_local | 1 | -- jsonc entsteht nicht durch Dateityp-Erkennung, sondern nur wenn es explizit |
| 2 | 2 | -- gesetzt wird (z.B. per Modeline). Die Einstellungen sind dieselben wie fuer json. | |
| 3 | opt.expandtab = true | 3 | vim.cmd.runtime("ftplugin/json.lua") |
| 4 | opt.shiftwidth = 2 | ||
| 5 | opt.tabstop = 2 | ||
