summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/basics.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugin/basics.lua b/plugin/basics.lua
index 6184fe6..0e33569 100644
--- a/plugin/basics.lua
+++ b/plugin/basics.lua
@@ -43,6 +43,21 @@ opt.autoindent = true -- Copy indent from current line when starting new line
opt.cindent = true -- C programming indentation
-----------------------------------------------------------
+-- Equal window sizes when resizing
+-----------------------------------------------------------
+vim.api.nvim_create_autocmd({
+ "VimResized",
+ "WinNew",
+ "WinClosed",
+}, {
+ callback = function()
+ vim.cmd("wincmd =")
+ end,
+})
+opt.equalalways = true
+opt.eadirection = "both"
+
+-----------------------------------------------------------
-- Memory, CPU
-----------------------------------------------------------
opt.hidden = true -- Enable background buffers