set file type to groovy if file is called jenkinsfile

This commit is contained in:
JesseBot 2024-11-21 13:07:28 +01:00
parent 4fcad26251
commit d7b7f81716
No known key found for this signature in database

View file

@ -92,3 +92,11 @@ autocmd({"BufEnter", "BufWinEnter"}, {
vim.bo.filetype = "markdown"
end,
})
-- set file type to groovy if Jenkinsfile is the file name
autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"Jenkinsfile"},
callback = function()
vim.bo.filetype = "groovy"
end,
})