mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
@@ -17,6 +17,9 @@ local function toggle()
|
||||
if cfg.position == "bottom" then
|
||||
vim.api.nvim_command("bel new")
|
||||
width = vim.api.nvim_win_get_width(prev_win)
|
||||
elseif cfg.position == "top" then
|
||||
vim.api.nvim_command("top new")
|
||||
width = vim.api.nvim_win_get_height(prev_win)
|
||||
elseif cfg.position == "left" then
|
||||
vim.api.nvim_command("topleft vnew")
|
||||
height = vim.api.nvim_win_get_height(prev_win)
|
||||
|
||||
Reference in New Issue
Block a user