mirror of
https://github.com/tiyn/nvim-docs-view.git
synced 2025-11-13 05:49:45 +01:00
@@ -38,7 +38,7 @@ EOF
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Use `:DocsViewToggle` to open/close the docs view side panel
|
Use `:DocsViewToggle` to open/close the docs view panel
|
||||||
|
|
||||||
## LICENSE
|
## LICENSE
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ local function toggle()
|
|||||||
if cfg.position == "bottom" then
|
if cfg.position == "bottom" then
|
||||||
vim.api.nvim_command("bel new")
|
vim.api.nvim_command("bel new")
|
||||||
width = vim.api.nvim_win_get_width(prev_win)
|
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
|
elseif cfg.position == "left" then
|
||||||
vim.api.nvim_command("topleft vnew")
|
vim.api.nvim_command("topleft vnew")
|
||||||
height = vim.api.nvim_win_get_height(prev_win)
|
height = vim.api.nvim_win_get_height(prev_win)
|
||||||
|
|||||||
Reference in New Issue
Block a user