format all lua files
This commit is contained in:
@ -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 =]] })
|
||||
|
Reference in New Issue
Block a user