diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 14:27:40 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 14:44:49 +0100 |
| commit | ea63dae598bf302a9681a7a5da35c957f47f9b73 (patch) | |
| tree | 21578741c63822f8e3096bf8b783f3ca7fccc677 /lua/plugins | |
| parent | 7fb525e5c3b29a1c23be6ec5c60a54edf702bfbc (diff) | |
| download | vis-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')
| -rw-r--r-- | lua/plugins/filetype.lua | 4 |
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$" }, }, |
