summaryrefslogtreecommitdiff
path: root/pkgs/old-custom-neovim/config/lua/autocommands.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-08-16 20:20:21 -0400
committertriethyl <triethylammonium@pm.me>2025-08-16 20:20:21 -0400
commit58ceb817bb6ba195d1189160878f318f3bcda0ef (patch)
tree6c17c013c92af8c6e410bb1d4fe3a2557841d0d3 /pkgs/old-custom-neovim/config/lua/autocommands.lua
parent94980b0be13a690128992d98a2ed5db3ab592642 (diff)
neovim: restarted config
Diffstat (limited to 'pkgs/old-custom-neovim/config/lua/autocommands.lua')
-rw-r--r--pkgs/old-custom-neovim/config/lua/autocommands.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/old-custom-neovim/config/lua/autocommands.lua b/pkgs/old-custom-neovim/config/lua/autocommands.lua
new file mode 100644
index 0000000..c452696
--- /dev/null
+++ b/pkgs/old-custom-neovim/config/lua/autocommands.lua
@@ -0,0 +1,9 @@
+-- Autocommands
+
+-- Equalize Splits when resized
+vim.api.nvim_create_autocmd({"VimResized"}, {
+ callback = function()
+ -- vim.cmd.wincmd("=")
+ vim.cmd("FocusAutoresize")
+ end,
+})