From 62af7cfffa87bb07f452666aba5c2c0a4cbe5756 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 26 Jan 2026 23:38:37 +0100 Subject: Neovim: Autocmd für Taskwarrior-Dateien um die Einrückungen abzuschalten MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/config/autocmds.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'nvim/lua/config') diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 1452546..6627c74 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua @@ -20,6 +20,17 @@ vim.api.nvim_create_autocmd("FileType", { end, }) +vim.api.nvim_create_autocmd("FileType", { + pattern = { "taskedit", "taskwarrior" }, + callback = function() + vim.opt_local.smartindent = false + vim.opt_local.cindent = false + vim.opt_local.autoindent = false + vim.opt_local.indentexpr = "" + vim.opt_local.indentkeys = "" + end, +}) + -- https://github.com/nvim-tree/nvim-tree.lua/wiki/Open-At-Startup vim.api.nvim_create_autocmd("VimEnter", { callback = function(data) -- cgit v1.3