diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-31 09:44:13 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-31 09:44:13 +0100 |
| commit | 669561e21073e6efafddda25ba3ace69fb43819e (patch) | |
| tree | f94ebd60ad4cab480b5cbcb7e65dd2060696c339 /lua/config/autocmds.lua | |
| parent | 5044c70e9f62cdd06ee91e754423b07c1c18c12d (diff) | |
| download | nvim-conf-669561e21073e6efafddda25ba3ace69fb43819e.tar.gz nvim-conf-669561e21073e6efafddda25ba3ace69fb43819e.zip | |
feat: apply stylua
Diffstat (limited to 'lua/config/autocmds.lua')
| -rw-r--r-- | lua/config/autocmds.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 5a0bd77..b8953ce 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -1,7 +1,7 @@ -- resize splits if window got resized vim.api.nvim_create_autocmd({ "VimResized" }, { callback = function() - vim.cmd("tabdo wincmd =") + vim.cmd "tabdo wincmd =" end, }) @@ -32,8 +32,8 @@ vim.api.nvim_create_autocmd("FileType", { end, }) -vim.api.nvim_create_autocmd({"BufWritePre"}, { - callback = function () - vim.cmd([[%s/\s\+$//e]]) - end +vim.api.nvim_create_autocmd({ "BufWritePre" }, { + callback = function() + vim.cmd [[%s/\s\+$//e]] + end, }) |