From e292b5bd5ba856925d7422f8d251970abafc59b5 Mon Sep 17 00:00:00 2001 From: triethyl Date: Mon, 11 Aug 2025 18:53:49 -0400 Subject: neovim: automatic split resizing and cleanup --- pkgs/custom-neovim/config/lua/autocommands.lua | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'pkgs/custom-neovim/config/lua/autocommands.lua') 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, +}) -- cgit v1.2.3