remove tabs (#1047)
This commit is contained in:
committed by
GitHub
parent
ac858a28a2
commit
5015e7226c
@@ -168,10 +168,10 @@ function M.open(options)
|
|||||||
set_window_options_and_buffer()
|
set_window_options_and_buffer()
|
||||||
M.resize()
|
M.resize()
|
||||||
|
|
||||||
local opts = options or { focus_tree = true }
|
local opts = options or { focus_tree = true }
|
||||||
if not opts.focus_tree then
|
if not opts.focus_tree then
|
||||||
vim.cmd("wincmd p")
|
vim.cmd("wincmd p")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.resize(size)
|
function M.resize(size)
|
||||||
@@ -190,9 +190,9 @@ function M.resize(size)
|
|||||||
a.nvim_win_set_height(M.get_winnr(), get_size())
|
a.nvim_win_set_height(M.get_winnr(), get_size())
|
||||||
end
|
end
|
||||||
|
|
||||||
if not M.View.preserve_window_proportions then
|
if not M.View.preserve_window_proportions then
|
||||||
vim.cmd(":wincmd =")
|
vim.cmd(":wincmd =")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.reposition_window()
|
function M.reposition_window()
|
||||||
|
|||||||
Reference in New Issue
Block a user