summaryrefslogtreecommitdiff
path: root/filetype.lua
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2026-02-13 02:16:40 +0000
committerBrahmajit Das <listout@listout.xyz>2026-02-13 02:16:40 +0000
commitf1b3356689003abe9edb5a46d4a091b0a41d7306 (patch)
tree3f94c38ddf7559f088c581b3270f62f99484477e /filetype.lua
parent7e35baacfdeeb7f834fa37841c9d3a2189a976d0 (diff)
downloadnvim-f1b3356689003abe9edb5a46d4a091b0a41d7306.tar.gz
moving vimscript configs to lua config
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '')
-rw-r--r--filetype.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/filetype.lua b/filetype.lua
new file mode 100644
index 0000000..5ec6e1d
--- /dev/null
+++ b/filetype.lua
@@ -0,0 +1,20 @@
+--
+-- Mainly filetype settings
+--
+
+local cmd = vim.cmd
+
+-- 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