I am having trouble with trying to figure this out. I recently started using neovim and have come across learning about the LSP features. One thing I didn't like was the virtual text on screen as it populates too much on the program screen. Thankfully i was able to disable that but I still like the idea of having the error or warning message. One is able to see these messages through vim.lsp.diagnostic... or copen command. This is cool as its what im used to and have liked. The problem now is though is the running both commands. Just like most commands in nvim it will open another buffer horizontally or vertically. I don't like this as it ruins the main idea of just having my project file on display.
This got me thinking to what i used to have using CLION. One is able to have the cpp file and in a whole another window, like actual window that one can dock, have diagnostic. i able to get close to this in neovim in the screenshot provided.
The problem is that i have to open the project file on both terminals then run :copen in the right terminal. So now i 2 files open. Not only that but i have the copen buffer on the right. As well when i close my project file on the right, updating the left terminal file wont update the right terminal :copen buffer.
Im here because ive looked all last night and tried multiple options but none work. Any help will be appreciated.
I had tried the --server and --listen options but it seems this mirrors two instances, meaning when I open :copen in the right terminal it does it on the right which is not what I'm trying to achieve. I expected In this instance that both instances will be linked meaning the copen on the right will link to my project file on the left which didn't.
:cope,:ccl,:cn,:cpare useful shortcuts; I have some keybinds for toggling the window/navigating results which I can share also). The QFL was designed to be used in a single terminal instance. I'd encourage to get used to having it in a split and just close it when you don't want it. OrCtrl-W Ctrl-Ton it to move it to a new tab in neovim andgtto switch tabs. Also check out the lsp_lines plugin.