diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-09-07 11:31:58 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-09-07 11:31:58 +0200 |
| commit | 873a5d57e0d5981cde181a28cb87444cdd375f23 (patch) | |
| tree | 94bc8e01a78959c1ff7f581e7ac82c1d9501d0d0 /nvim/ftplugin | |
| parent | 98b344cbacff5fad784b88abcf05186994edcef8 (diff) | |
| download | dotfiles-873a5d57e0d5981cde181a28cb87444cdd375f23.tar.gz dotfiles-873a5d57e0d5981cde181a28cb87444cdd375f23.tar.bz2 dotfiles-873a5d57e0d5981cde181a28cb87444cdd375f23.zip | |
Unterstützung für jsonc
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/json.lua | 8 | ||||
| -rw-r--r-- | nvim/ftplugin/jsonc.lua | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/nvim/ftplugin/json.lua b/nvim/ftplugin/json.lua index a6321ff..73b5935 100644 --- a/nvim/ftplugin/json.lua +++ b/nvim/ftplugin/json.lua | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | local opt = vim.opt_local | 1 | -- Standard-Dateityp für .json-Dateien ist "jsonc" (siehe lua/config/filetypes.lua). |
| 2 | 2 | -- Buffer, deren Dateityp explizit "json" ist, erben dieselben Einstellungen. | |
| 3 | opt.expandtab = true | 3 | vim.cmd("runtime! ftplugin/jsonc.lua") |
| 4 | opt.shiftwidth = 2 | ||
| 5 | opt.tabstop = 2 | ||
diff --git a/nvim/ftplugin/jsonc.lua b/nvim/ftplugin/jsonc.lua new file mode 100644 index 0000000..a6321ff --- /dev/null +++ b/nvim/ftplugin/jsonc.lua | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | local opt = vim.opt_local | ||
| 2 | |||
| 3 | opt.expandtab = true | ||
| 4 | opt.shiftwidth = 2 | ||
| 5 | opt.tabstop = 2 | ||
