Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change starting slot for treeview position from 0 to 1 #15

Closed
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
6 changes: 3 additions & 3 deletions lsp-metals-treeview.el
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ then show the window."
nil)))
(when (or (eq 'hidden visibility) (eq 'none visibility))
(lsp-metals-treeview--show-views workspace
views 0 select-window?))))
views 1 select-window?))))

(defun lsp-metals-treeview--delete-window (&optional workspace workspace-shutdown?)
"Delete the metals treeview window associated with the WORKSPACE.
Expand Down Expand Up @@ -457,7 +457,7 @@ Select the first view/buffer in the treeview window."
"Display each view returned by Metals in our sidebar treeview window.
Views are displayed for this WORKSPACE, VIEWS is a list of alist containing
the views taken from the lsp-metals-treeview--data structure. SLOT is a
numeric position starting from 0 where the treeview will be positioned
numeric position starting from 1 where the treeview will be positioned
relative to the others. when SELECT-TREEVIEW-WINDOW is 't' the treeview
window will be selected and have focus."
(if (not (null views))
Expand Down Expand Up @@ -512,7 +512,7 @@ by Metals in this case."
(lsp-metals-treeview--exists? workspace))
(lsp-metals-treeview--show-views workspace
(and state (lsp-metals-treeview--data-views state))
0))))
1))))


(defun lsp-metals-treeview--cache-add-nodes (metals-nodes current-treemacs-node)
Expand Down