From 62a3a13e0a3dc5fdb3f85b4b7ddb8ab0b97c8b52 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 8 Sep 2026 15:07:39 +0200 Subject: Einfacheres JSON(c)-Handling --- nvim/ftplugin/json.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nvim/ftplugin/json.lua') 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 @@ --- Standard-Dateityp für .json-Dateien ist "jsonc" (siehe lua/config/filetypes.lua). --- Buffer, deren Dateityp explizit "json" ist, erben dieselben Einstellungen. -vim.cmd.runtime("ftplugin/jsonc.lua") +local opt = vim.opt_local + +opt.expandtab = true +opt.shiftwidth = 2 +opt.tabstop = 2 -- cgit v1.3