diff options
| author | Brahmajit Das <listout@listout.xyz> | 2026-02-13 02:16:40 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2026-02-13 02:16:40 +0000 |
| commit | f1b3356689003abe9edb5a46d4a091b0a41d7306 (patch) | |
| tree | 3f94c38ddf7559f088c581b3270f62f99484477e /plugin/filetypes.lua | |
| parent | 7e35baacfdeeb7f834fa37841c9d3a2189a976d0 (diff) | |
| download | nvim-f1b3356689003abe9edb5a46d4a091b0a41d7306.tar.gz | |
moving vimscript configs to lua config
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to 'plugin/filetypes.lua')
| -rw-r--r-- | plugin/filetypes.lua | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugin/filetypes.lua b/plugin/filetypes.lua deleted file mode 100644 index 438eeae..0000000 --- a/plugin/filetypes.lua +++ /dev/null @@ -1,28 +0,0 @@ --- --- Mainly filetype settings --- - -local cmd = vim.cmd -local u = require('utils') - -u.create_augroup({ - { 'BufRead,BufNewFile', '/tmp/nail-*', 'setlocal', 'ft=mail' }, - { 'BufRead,BufNewFile', '*s-nail-*', 'setlocal', 'ft=mail' }, - { 'BufRead,BufNewFile', '*mutt-*', 'setlocal', 'ft=mail' }, - { 'BufRead', '/tmp/*mutt-*', 'setlocal', 'tw=72' }, -}, 'ftmail') - --- Autoremove unwanted whitespaces -cmd [[ - au BufRead,BufNewFile *mutt-* setfiletype mail -]] - -vim.filetype.add { - extension = { - h = "c", - scheme = "scheme", - }, -} - --- Add in the following like to auto remove empty lines --- au BufWritePre * %s/\s\+$//e |
