dotfiles/nvim/after/ftplugin/help.lua
2026-06-02 08:20:14 +02:00

9 lines
203 B
Lua

local win_width = vim.api.nvim_win_get_width(0)
-- do not change layout if the screen is not wide enough
if win_width < 200 then
return
end
-- L means to put window to leftmost
vim.cmd.wincmd([[L]])