emacs-lsp / lsp-metals

lsp-mode :heart: metals
https://emacs-lsp.github.io/lsp-metals
GNU General Public License v3.0
58 stars 33 forks source link

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

Closed julianmichael closed 1 year ago

julianmichael commented 4 years ago

Fixes #14.

I changed the constant to 1 here at both callsites but could also just add 1 to it in the lsp-metals-treeview--show-views function instead.

This also does change the behavior from replacing the file tree buffer (which I guess is slot 0 by default) to opening a new window under it. I feel like this is a positive (and hopefully uncontroversial) change, but can imagine why it might be something a user would want to configure.

julianmichael commented 4 years ago

Side comment: Even after this change, it seems to resize the lsp-metals treeview to take up half of the treeview window. I would prefer if it didn't change the size of the window so I could keep it shrunk down so it doesn't cover half of the file tree since the compilation progress only takes a max of a few lines anyway. Any ideas on how to do this?

kurnevsky commented 1 year ago

I'm going to close this due to discussion in the issue.