fix/refactor(preview): Proper per-sidebar support & complete rewrite

This commit is contained in:
hedy
2023-11-27 20:08:22 +08:00
parent b6b2bf2248
commit 80f76333ba
5 changed files with 158 additions and 148 deletions

View File

@@ -24,7 +24,7 @@ function View:setup_view(split_command)
vim.cmd(split_command)
-- resize to a % of the current window size
vim.cmd('vertical resize ' .. cfg.get_window_width())
vim.cmd('vertical resize ' .. cfg.o.outline_window.width)
-- get current (outline) window and attach our buffer to it
self.win = vim.api.nvim_get_current_win()