Skip to content

Commit f72d31b

Browse files
committed
feat(lsp): update side panel opening behavior
- The side panel now opens with the current buffer context. - Users can access definitions in a new vertical window more intuitively. - Improved workflow for navigating LSP definitions.
1 parent c7bdb06 commit f72d31b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugin/autocmds/lsp-attach.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ local function keymaps(bufnr, client)
5555

5656
-- Open definition in a new vertical window
5757
local function vsplit_and_definition()
58-
vim.ui.open_side_panel(false)
58+
-- We need to open the panel with the current buffer first
59+
vim.ui.open_side_panel("vsplit | wincmd L")
5960
vim.lsp.buf.definition()
6061
end
6162

0 commit comments

Comments
 (0)