aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype/detect.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua
index 8a217a4ac2..95e55ebb21 100644
--- a/runtime/lua/vim/filetype/detect.lua
+++ b/runtime/lua/vim/filetype/detect.lua
@@ -710,12 +710,13 @@ function M.haredoc(path, _)
end
--- @type vim.filetype.mapfn
-function M.html(path, bufnr)
- -- Test if the filename follows the Angular component template convention
- local filename = fn.fnamemodify(path, ':t')
- if filename:find('%.component%.html$') then
- return 'htmlangular'
- end
+function M.html(_, bufnr)
+ -- Disabled for the reasons mentioned here:
+ -- https://github.com/vim/vim/pull/13594#issuecomment-1834465890
+ -- local filename = fn.fnamemodify(path, ':t')
+ -- if filename:find('%.component%.html$') then
+ -- return 'htmlangular'
+ -- end
for _, line in ipairs(getlines(bufnr, 1, 40)) do
if