diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/ftplugin/taskedit.lua | 1 | ||||
| -rw-r--r-- | nvim/ftplugin/taskwarrior.lua | 5 | ||||
| -rw-r--r-- | nvim/lua/config/autocmds.lua | 11 |
3 files changed, 6 insertions, 11 deletions
diff --git a/nvim/ftplugin/taskedit.lua b/nvim/ftplugin/taskedit.lua new file mode 100644 index 0000000..a905acb --- /dev/null +++ b/nvim/ftplugin/taskedit.lua | |||
| @@ -0,0 +1 @@ | |||
| vim.cmd.runtime("ftplugin/taskwarrior.lua") | |||
diff --git a/nvim/ftplugin/taskwarrior.lua b/nvim/ftplugin/taskwarrior.lua new file mode 100644 index 0000000..833a35c --- /dev/null +++ b/nvim/ftplugin/taskwarrior.lua | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | vim.opt_local.smartindent = false | ||
| 2 | vim.opt_local.cindent = false | ||
| 3 | vim.opt_local.autoindent = false | ||
| 4 | vim.opt_local.indentexpr = "" | ||
| 5 | vim.opt_local.indentkeys = "" | ||
diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 6627c74..1452546 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua | |||
| @@ -20,17 +20,6 @@ vim.api.nvim_create_autocmd("FileType", { | |||
| 20 | end, | 20 | end, |
| 21 | }) | 21 | }) |
| 22 | 22 | ||
| 23 | vim.api.nvim_create_autocmd("FileType", { | ||
| 24 | pattern = { "taskedit", "taskwarrior" }, | ||
| 25 | callback = function() | ||
| 26 | vim.opt_local.smartindent = false | ||
| 27 | vim.opt_local.cindent = false | ||
| 28 | vim.opt_local.autoindent = false | ||
| 29 | vim.opt_local.indentexpr = "" | ||
| 30 | vim.opt_local.indentkeys = "" | ||
| 31 | end, | ||
| 32 | }) | ||
| 33 | |||
| 34 | -- https://github.com/nvim-tree/nvim-tree.lua/wiki/Open-At-Startup | 23 | -- https://github.com/nvim-tree/nvim-tree.lua/wiki/Open-At-Startup |
| 35 | vim.api.nvim_create_autocmd("VimEnter", { | 24 | vim.api.nvim_create_autocmd("VimEnter", { |
| 36 | callback = function(data) | 25 | callback = function(data) |
