set yaml for clang config files
This commit is contained in:
parent
2bdc01b56f
commit
c6bdb676aa
@ -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]] })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user