added doskey file type in autocommands

This commit is contained in:
Oliver Hartmann 2022-04-29 15:04:26 +02:00
parent 2da1322e7f
commit 8cafa90c01

View File

@ -37,6 +37,13 @@ api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { 'doskey'},
callback = function()
vim.bo.filetype = 'dosini'
end,
group = fileGrp,
})
-- Read and write shada file
api.nvim_create_autocmd({ 'FocusGained', 'FocusLost' }, { command = [[rshada | wshada]] })