From 873a5d57e0d5981cde181a28cb87444cdd375f23 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 7 Sep 2026 11:31:58 +0200 Subject: Unterstützung für jsonc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/ftplugin/json.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nvim/ftplugin/json.lua') 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 @@ -local opt = vim.opt_local - -opt.expandtab = true -opt.shiftwidth = 2 -opt.tabstop = 2 +-- 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") -- cgit v1.3