fix(filetype): fix typos in filetype detection

(cherry picked from commit aa9f21ee95)
This commit is contained in:
Evgeni Chasnovski
2024-06-04 11:55:59 +03:00
committed by github-actions[bot]
parent 94d8f6bde8
commit 1fe1f8556e

View File

@ -594,7 +594,7 @@ function M.frm(_, bufnr)
end
--- @type vim.filetype.mapfn
function M.fvwm_1(_, _)
function M.fvwm_v1(_, _)
return 'fvwm', function(bufnr)
vim.b[bufnr].fvwm_version = 1
end
@ -1331,7 +1331,7 @@ end
function M.sgml(_, bufnr)
local lines = table.concat(getlines(bufnr, 1, 5))
if lines:find('linuxdoc') then
return 'smgllnx'
return 'sgmllnx'
elseif lines:find('<!DOCTYPE.*DocBook') then
return 'docbk',
function(b)