From 8cafa90c01a46cc3cb6fcdc447fe2585248cd0eb Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 29 Apr 2022 15:04:26 +0200 Subject: [PATCH] added doskey file type in autocommands --- lua/my_autocommands.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/my_autocommands.lua b/lua/my_autocommands.lua index 8c3464c..f058acb 100644 --- a/lua/my_autocommands.lua +++ b/lua/my_autocommands.lua @@ -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]] })