diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-18 15:23:47 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-18 15:23:47 +0200 |
commit | 3b209dc0f967e469207beea7d6478ebe1e075c76 (patch) | |
tree | d082d529b394411ec97124ee0b34baa05585dd47 /.config/nvim/after/ftdetect/aerc.lua | |
parent | 7ec58aa28b5ddbfd88270710e3b6ae5b094d4424 (diff) |
nvim: Prefer *.vim to *.lua
Diffstat (limited to '.config/nvim/after/ftdetect/aerc.lua')
-rw-r--r-- | .config/nvim/after/ftdetect/aerc.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/.config/nvim/after/ftdetect/aerc.lua b/.config/nvim/after/ftdetect/aerc.lua deleted file mode 100644 index c430e33..0000000 --- a/.config/nvim/after/ftdetect/aerc.lua +++ /dev/null @@ -1,24 +0,0 @@ -local confhome = vim.fn.getenv('XDG_CONFIG_HOME') -confhome = confhome == vim.NIL and '~/.config/aerc/' or confhome .. '/aerc/' - -vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, { - pattern = { - confhome .. '*.conf', - confhome .. 'stylesets/*', - '/usr/share/aerc/*.conf', - '/usr/share/aerc/stylesets/*', - }, - callback = function() - vim.bo.filetype = 'ini' - end, -}) - -vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, { - pattern = { - confhome .. 'templates/*', - '/usr/share/aerc/templates/*', - }, - callback = function() - vim.bo.filetype = 'gotmpl' - end, -}) |