diff options
| author | Brahmajit Das <listout@listout.xyz> | 2026-01-29 16:10:13 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2026-01-29 16:10:13 +0000 |
| commit | 6352cee2d5bfe1f07648ac062e2d08f52a970d7e (patch) | |
| tree | 920274cd1e37bb3df0572302678dfadd89c501e4 /plugin/basics.lua | |
| parent | 4d934621751e5949f85b9b559c3330acafe165b2 (diff) | |
| download | nvim-6352cee2d5bfe1f07648ac062e2d08f52a970d7e.tar.gz | |
plugin: basics: Keep window sizes equal when resizing
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '')
| -rw-r--r-- | plugin/basics.lua | 15 |
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 |
