Skip to content

Commit 5b9fffe

Browse files
committed
auto resive
1 parent 0c81a18 commit 5b9fffe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

fnl/core.fnl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
:command "setlocal number"})
2525
;; delete empty space from the end of lines on every save
2626
(vim.api.nvim_create_autocmd :BufWritePre
27-
{:group g :command "%s/\\s\\+$//e"}))
27+
{:group g :command "%s/\\s\\+$//e"})
28+
;; equalize windows on terminal resize
29+
(vim.api.nvim_create_autocmd :VimResized
30+
{:group g :command "wincmd ="}))
2831
(let [g (vim.api.nvim_create_augroup :filetype-mappings {:clear true})]
2932
(vim.api.nvim_create_autocmd :FileType
3033
{:group g

0 commit comments

Comments
 (0)