format all lua files

This commit is contained in:
2023-01-29 11:55:25 +01:00
parent fa0d4ffd8f
commit b87bbaee74
19 changed files with 179 additions and 453 deletions

View File

@ -38,14 +38,14 @@ api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { 'doskey'},
pattern = { 'doskey' },
callback = function()
vim.bo.filetype = 'dosini'
end,
group = fileGrp,
})
api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { '.clangd', '.clang-tidy'},
pattern = { '.clangd', '.clang-tidy' },
callback = function()
vim.bo.filetype = 'yaml'
end,
@ -62,7 +62,8 @@ api.nvim_create_autocmd({ 'FocusLost' }, { command = [[wshada]] })
-- )
-- Check if we need to reload the file when it changed
api.nvim_create_autocmd({ 'FocusGained', 'BufEnter' }, { command = [[if !bufexists("[Command Line]") | checktime | endif]] })
api.nvim_create_autocmd({ 'FocusGained', 'BufEnter' },
{ command = [[if !bufexists("[Command Line]") | checktime | endif]] })
-- windows to close with "q"
api.nvim_create_autocmd(
@ -82,4 +83,4 @@ api.nvim_create_autocmd(
api.nvim_create_autocmd('BufEnter', { command = [[set formatoptions-=cro]] })
-- Keep window ratio when resize
api.nvim_create_autocmd('VimResized', {command = [[wincmd =]]})
api.nvim_create_autocmd('VimResized', { command = [[wincmd =]] })