From f1b3356689003abe9edb5a46d4a091b0a41d7306 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Fri, 13 Feb 2026 07:46:40 +0530 Subject: moving vimscript configs to lua config Signed-off-by: Brahmajit Das --- plugin/filetypes.lua | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 plugin/filetypes.lua (limited to 'plugin') 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 -- cgit v1.2.3