VonHeikemen / lsp-zero.nvim

A starting point to setup some lsp related features in neovim.
https://lsp-zero.netlify.app/v4.x/
MIT License
3.75k stars 95 forks source link

Externally installed LSP servers #3

Closed mightyiam closed 2 years ago

mightyiam commented 2 years ago

Following up from this tweet.

So, I shouldn't bother trying if I currently intend to provide the servers myself?

VonHeikemen commented 2 years ago

Would you mind testing the new branch feat-lsp-system? It is not going to be "zero config", but is still easy.

The setup would look like this.

local lsp = require('lsp-zero')
lsp.preset('system-lsp')

-- provide the list of servers here...
lsp.setup_servers({
  'html',
  'cssls',
})

lsp.setup()

You'll need to use .setup_servers and/or .configure to initialize your language servers.

mightyiam commented 2 years ago

I sure will.

mightyiam commented 2 years ago

I would like to be able to configure some of the servers.

mightyiam commented 2 years ago

I see. .configure.

mightyiam commented 2 years ago

Seems like that branch still depends on nvim-lsp-installer. Could that require call be omitted?

mightyiam commented 2 years ago

Well, well. Seems to be working, other than requiring nvim-lsp-installer still. I am just assuming that dependency could be optional in this branch.

VonHeikemen commented 2 years ago

Well, yes. I've updated the branch. nvim-lsp-installer is only called when needed. If you can confirm this update works I can merge the branch with main.

mightyiam commented 2 years ago

Yup, works without nvim-lsp-installer.

VonHeikemen commented 2 years ago

The new preset is now on main.

mightyiam commented 2 years ago

Thank you, @VonHeikemen .