diff --git a/lua/astrocommunity/split-and-window/windows-nvim/README.md b/lua/astrocommunity/split-and-window/windows-nvim/README.md new file mode 100644 index 000000000..fe0f07847 --- /dev/null +++ b/lua/astrocommunity/split-and-window/windows-nvim/README.md @@ -0,0 +1,5 @@ +# Windows.nvim + +Automatically expand width of the current window. Maximizes and restore it. And all this with nice animations! + +**Repository:** diff --git a/lua/astrocommunity/split-and-window/windows-nvim/init.lua b/lua/astrocommunity/split-and-window/windows-nvim/init.lua new file mode 100644 index 000000000..bd33ecac3 --- /dev/null +++ b/lua/astrocommunity/split-and-window/windows-nvim/init.lua @@ -0,0 +1,22 @@ +return { + "anuvyklack/windows.nvim", + dependencies = { + "anuvyklack/middleclass", + "anuvyklack/animation.nvim", + }, + opts = {}, + cmd = { + "WindowsMaximize", + "WindowsMaximizeVertically", + "WindowsMaximizeHorizontally", + "WindowsEqualize", + "WindowsEnableAutowidth", + "WindowsDisableAutowidth", + "WindowsToggleAutowidth", + }, + init = function() + vim.o.winwidth = 10 + vim.o.winminwidth = 10 + vim.o.equalalways = false + end, +}