diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-11 18:53:49 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-11 18:53:49 -0400 |
| commit | e292b5bd5ba856925d7422f8d251970abafc59b5 (patch) | |
| tree | 5b6901bb5779ffcdd02814e218588d06763820bd /pkgs/custom-neovim/config/lua/autocommands.lua | |
| parent | e366181a3118cb69e60845258b60ac24029fc345 (diff) | |
neovim: automatic split resizing and cleanup
Diffstat (limited to 'pkgs/custom-neovim/config/lua/autocommands.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/autocommands.lua | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/pkgs/custom-neovim/config/lua/autocommands.lua b/pkgs/custom-neovim/config/lua/autocommands.lua index a09c5dd..c452696 100644 --- a/pkgs/custom-neovim/config/lua/autocommands.lua +++ b/pkgs/custom-neovim/config/lua/autocommands.lua @@ -1,15 +1,9 @@ -- Autocommands --- start terminal in insert mode --- vim.api.nvim_create_autocmd("TermOpen", { --- callback = function() --- vim.cmd "startinsert!" --- end, --- }) - -- Equalize Splits when resized --- vim.api.nvim_create_autocmd({"VimResized", "WinEnter"}, { --- callback = function() --- vim.cmd.wincmd("=") --- end, --- }) +vim.api.nvim_create_autocmd({"VimResized"}, { + callback = function() + -- vim.cmd.wincmd("=") + vim.cmd("FocusAutoresize") + end, +}) |
