aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim3
-rw-r--r--runtime/lua/man/health.lua20
-rw-r--r--runtime/lua/vim/filetype.lua2
3 files changed, 25 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 183d50134c..b6673c1762 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1751,6 +1751,9 @@ au BufNewFile,BufRead *.sed setf sed
" SubRip
au BufNewFile,BufRead *.srt setf srt
+" SubStation Alpha
+au BufNewFile,BufRead *.ass,*.ssa setf ssa
+
" svelte
au BufNewFile,BufRead *.svelte setf svelte
diff --git a/runtime/lua/man/health.lua b/runtime/lua/man/health.lua
new file mode 100644
index 0000000000..11d7148216
--- /dev/null
+++ b/runtime/lua/man/health.lua
@@ -0,0 +1,20 @@
+local M = {}
+
+local report_ok = vim.fn['health#report_ok']
+local report_error = vim.fn['health#report_error']
+
+local function check_runtime_file(name)
+ local path = vim.env.VIMRUNTIME .. '/' .. name
+ if vim.loop.fs_stat(path) then
+ report_error(string.format('%s detected. Please delete %s', name, path))
+ else
+ report_ok(string.format('%s not in $VIMRUNTIME', name))
+ end
+end
+
+function M.check()
+ check_runtime_file('plugin/man.vim')
+ check_runtime_file('autoload/man.vim')
+end
+
+return M
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 36ea97fb21..e204fe8ae2 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -970,6 +970,8 @@ local extension = {
mot = 'srec',
['s19'] = 'srec',
srt = 'srt',
+ ssa = 'ssa',
+ ass = 'ssa',
st = 'st',
imata = 'stata',
['do'] = 'stata',