aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-08-13 10:26:12 +0200
committerGitHub <noreply@github.com>2022-08-13 10:26:12 +0200
commita850b15e1968476e0f609a9d699cdf24fd13e3a2 (patch)
treee19ece50236b3f33afb85a8e9f256b719068d3b9 /runtime/lua/vim
parent1de62b9ea17b08db0fe37caf1f054b7b809120c3 (diff)
downloadrneovim-a850b15e1968476e0f609a9d699cdf24fd13e3a2.tar.gz
rneovim-a850b15e1968476e0f609a9d699cdf24fd13e3a2.tar.bz2
rneovim-a850b15e1968476e0f609a9d699cdf24fd13e3a2.zip
vim-patch:9.0.0195: metafun files are not recogized (#19746)
Problem: Metafun files are not recogized. Solution: Add filetype detection patterns. https://github.com/vim/vim/commit/9032b9ceb6073288d75386dbcbd9d1982fa24080
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index e9e81caec0..3cfc4e288a 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -668,6 +668,21 @@ local extension = {
moo = 'moo',
moon = 'moonscript',
mp = 'mp',
+ mpiv = function(path, bufnr)
+ return 'mp', function(b)
+ vim.b[b].mp_metafun = 1
+ end
+ end,
+ mpvi = function(path, bufnr)
+ return 'mp', function(b)
+ vim.b[b].mp_metafun = 1
+ end
+ end,
+ mpxl = function(path, bufnr)
+ return 'mp', function(b)
+ vim.b[b].mp_metafun = 1
+ end
+ end,
mof = 'msidl',
odl = 'msidl',
msql = 'msql',