Closed lopi-py closed 2 years ago
Thanks for the PR. However, I don't want to make it mandatory, because I can install LSP server without using nvim-lsp-installer. Therefore, I can't incorporate this PR as is.
Do you have any other ideas?
I can check if require'nvim-lsp-installer'
throws an error to check if is installed
Get only installed servers to complete
However, I don't want to make it mandatory, because I can install LSP server without using nvim-lsp-installer.
Maybe this is better.
for lsp, _ in pairs(require('lspconfig.configs')) do
print(vim.inspect(lsp))
end
We can use nvim-lspconfig
to detect which LSP servers we've installed.
@registerGen
require('lspconfig.configs')
seems like a very good idea!
But I'm not sure. I think there can be any number of complementary candidates.
The reason is that you can enter the server name of the configuration file you want to open yourself. That's why I don't feel good about this PR.
Yeah, use lspconfig.configs
is the better way, but if you like I can make it optional
Get only installed servers to complete![image](https://user-images.githubusercontent.com/70210066/150717773-7a39ca83-35de-4903-8808-f34feb815196.png)