aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/filetype.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-14 14:27:40 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-14 14:44:49 +0100
commitea63dae598bf302a9681a7a5da35c957f47f9b73 (patch)
tree21578741c63822f8e3096bf8b783f3ca7fccc677 /lua/plugins/filetype.lua
parent7fb525e5c3b29a1c23be6ec5c60a54edf702bfbc (diff)
downloadvis-ea63dae598bf302a9681a7a5da35c957f47f9b73.tar.gz
vis-ea63dae598bf302a9681a7a5da35c957f47f9b73.tar.xz
lua: add crontab file type and configure it to save in-place
This should fix isses with `crontab -e` editing.
Diffstat (limited to 'lua/plugins/filetype.lua')
-rw-r--r--lua/plugins/filetype.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 51f5e1c..819a246 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -69,6 +69,10 @@ vis.ftdetect.filetypes = {
ext = { "%.cpp$", "%.cxx$", "%.c++$", "%.cc$", "%.hh$", "%.hpp$", "%.hxx$", "%.h++$" },
mime = { "text/x-c++" },
},
+ crontab = {
+ ext = { "^crontab.*$" },
+ cmd = { "set savemethod inplace" },
+ },
crystal = {
ext = { "%.cr$" },
},