diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-09-08 15:07:39 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-09-08 15:07:39 +0200 |
| commit | 62a3a13e0a3dc5fdb3f85b4b7ddb8ab0b97c8b52 (patch) | |
| tree | 3ba505a94db981a5f86fad63558de546635a9fb7 /nvim/ftplugin | |
| parent | 28f515c95ab95f92ab60053afd3a44d4b7f67598 (diff) | |
| download | dotfiles-62a3a13e0a3dc5fdb3f85b4b7ddb8ab0b97c8b52.tar.gz dotfiles-62a3a13e0a3dc5fdb3f85b4b7ddb8ab0b97c8b52.tar.bz2 dotfiles-62a3a13e0a3dc5fdb3f85b4b7ddb8ab0b97c8b52.zip | |
Einfacheres JSON(c)-Handling
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 | ||
