aboutsummaryrefslogtreecommitdiff
path: root/nvim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/ftplugin')
-rw-r--r--nvim/ftplugin/json.lua8
-rw-r--r--nvim/ftplugin/jsonc.lua5
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 @@
1local 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.
3opt.expandtab = true 3vim.cmd("runtime! ftplugin/jsonc.lua")
4opt.shiftwidth = 2
5opt.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 @@
1local opt = vim.opt_local
2
3opt.expandtab = true
4opt.shiftwidth = 2
5opt.tabstop = 2