diff options
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/json.lua | 8 | ||||
| -rw-r--r-- | nvim/ftplugin/jsonc.lua | 8 | ||||
| -rw-r--r-- | nvim/ftplugin/taskedit.lua | 6 | ||||
| -rw-r--r-- | nvim/ftplugin/taskwarrior.lua | 7 |
4 files changed, 13 insertions, 16 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 | ||
diff --git a/nvim/ftplugin/taskedit.lua b/nvim/ftplugin/taskedit.lua index a905acb..ee8fdf0 100644 --- a/nvim/ftplugin/taskedit.lua +++ b/nvim/ftplugin/taskedit.lua | |||
| @@ -1 +1,5 @@ | |||
| 1 | vim.cmd.runtime("ftplugin/taskwarrior.lua") | 1 | local opt = vim.opt_local |
| 2 | |||
| 3 | opt.autoindent = false | ||
| 4 | opt.indentexpr = "" | ||
| 5 | opt.indentkeys = "" | ||
diff --git a/nvim/ftplugin/taskwarrior.lua b/nvim/ftplugin/taskwarrior.lua deleted file mode 100644 index a3c4537..0000000 --- a/nvim/ftplugin/taskwarrior.lua +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | local opt = vim.opt_local | ||
| 2 | |||
| 3 | opt.autoindent = false | ||
| 4 | opt.cindent = false | ||
| 5 | opt.indentexpr = "" | ||
| 6 | opt.indentkeys = "" | ||
| 7 | opt.smartindent = false | ||
