set yaml for clang config files

This commit is contained in:
Oliver Hartmann 2022-05-25 11:12:36 +02:00
parent 2bdc01b56f
commit c6bdb676aa

View File

@ -44,6 +44,13 @@ api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
end, end,
group = fileGrp, group = fileGrp,
}) })
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { '.clangd', '.clang-tidy'},
callback = function()
vim.bo.filetype = 'yaml'
end,
group = fileGrp,
})
-- Read and write shada file -- Read and write shada file
api.nvim_create_autocmd({ 'FocusLost' }, { command = [[wshada]] }) api.nvim_create_autocmd({ 'FocusLost' }, { command = [[wshada]] })