feat: add filetype autocmd for gitlab ci and sshconfig

This commit is contained in:
Matej Janezic 2024-11-23 01:41:27 +01:00
parent 7c09124f3d
commit af404f2329
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 14 additions and 0 deletions

View File

@ -13,3 +13,17 @@ vim.api.nvim_create_autocmd('TextYankPost', {
group = highlight_group, group = highlight_group,
pattern = '*', pattern = '*',
}) })
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = '*.gitlab-ci*.{yml,yaml}',
callback = function()
vim.bo.filetype = 'yaml.gitlab'
end,
})
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = vim.fn.expand '~' .. '/.ssh/config.d/*.config',
callback = function()
vim.bo.filetype = 'sshconfig'
end,
})