feat: add filetype autocmd for gitlab ci and sshconfig
This commit is contained in:
parent
7c09124f3d
commit
af404f2329
|
@ -13,3 +13,17 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
|||
group = highlight_group,
|
||||
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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue