-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Location list #626
Location list #626
Conversation
Merging this as this is also going to be used by #607. |
This made vim-go pretty much unusable for me on a laptop (limited horizontal space) with vertical splits. |
You can change the location of the window. It's up to you, it's not vim-go's fault. Please check out Google or have a look at my dotfiles where I'm modifying it (github.com/fatih/dotfiles). So put this:
So for your case put this into your vimrc:
|
I must admit I feel the same way about the move from one quickfix window to multiple (one per buffer) location lists. Being able to automatically move the lists based on the filetype is nice, but in the case of a location list per buffer, you can very easily end up with a few location lists stacked on top of each other. And if you want to close them with :lclose it means you have to find the buffer it was related to. I had this several times the last week and found it pretty annoying. All of this was way nicer with the one single quickfix window (which I also automatically moved by the way), so if it could be made configurable (to use either a single quickfix or multiple location lists) that would be really awesome! Cheers! |
This PR not only introduced the change to location list, but it also changed how we call an error window. It's pretty easy to change it back to quickfix. But the problem is that quickfix is racy with Neovim integration and not something that fits into the model of NeoVim. For example you can easily execute |
I must admit that after working with it for a while, I seem to have found my way with it... Still think it's not as clean as using the quickfix window, but I can work with it and I do see the additional benefits you discussed. So I'm good 😉 Thx... |
Any pointers on how to do that? |
@ebfe It's in |
@faith Thanks. Would it be acceptable to have this as an option? While the new behaviour might |
In the future maybe @ebfe You can open a separate PR so we don't forget it. But I'm not sure If want to implement based on prior comments. |
Add support for
location list
instead of usingquickfix window
. This allows us to let each window having it's own list of errors displaying. Below is an example of it:Because of consistency, the previous setting:
go_quickfix_height
is renamed togo_loclist_height
. (the single breaking change we have)This is a feature I really like. I also refactored all error parsing, populating, displaying, etc.. functions into a single file to make maintaining much more easier in the future.