mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
set file type to groovy if file is called jenkinsfile
This commit is contained in:
parent
4fcad26251
commit
d7b7f81716
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue