Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lua/nvim-tree/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,14 @@ local function open_window()
if config.g.view.float.enable then
vim.api.nvim_open_win(0, true, open_win_config())
else
vim.api.nvim_command("vsp")
local ei = vim.o.eventignore
vim.o.eventignore = "all"
vim.api.nvim_open_win(M.get_bufnr(), true, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for this change from vsp?

This code is very fagile and has to handle a lot of edge cases.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LLM might have not 'known' about it though…

split = config.g.view.side or "left",
width = view_state.get_width(),
})
M.reposition_window()
vim.o.eventignore = ei
end
setup_tabpage(vim.api.nvim_get_current_tabpage())
set_window_options_and_buffer()
Expand Down
Loading