Our great sponsors
-
volar
Discontinued ⚡ Explore high-performance tooling for Vue [Moved to: https://github.com/vuejs/language-tools]
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
nvim-lsp-installer
Discontinued Further development has moved to https://github.com/williamboman/mason.nvim!
-
coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
null-ls.nvim
Discontinued Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
This is maybe my spoiled opinion as someone from strange lands coming in and being a bit confused: but why isn't there a community push to create "plugins", just like CoC, to create more of an out-of-the-box experience when setting up neovim? If three different web-developers needs to copy paste the same three language servers to get volar(a vue3 language server) up and running, why isn't there already a plugin doing most of the heavy lifting with saneish defaults which everybody uses?
But with the native lsp setup, you might only lspconfig for configuring a variety of LSP servers with sane defaults. Have a look at volar config. And if you also want to install LSP server via neovim, then https://github.com/williamboman/nvim-lsp-installer. null-ls.nvim is also worth mentioning
nvim-lspconfig contains reasonable defaults for various LSPs, but it doesn’t manage the actual installation of those servers. For that you want https://github.com/williamboman/nvim-lsp-installer. With those two plugins installed I can just do :LspInstallInfo to pick a known LSP to install/update/remove and nvim-lspconfig automatically handles setup & config. They basically work together to do what :CocConfig does.
I'm coming from CoC.nvim and have gotten used to the way of "ease" of installing language server extensions. As for the configuration you'll need, it's minimal at worst. Open up :CocConfig and type away.
Now, creating plugins that configure other plugins is not very common. We don't have a good dependency management story. I only know of two plugins that do it. Funny enough, I'm the author one of those (lsp-zero). It's doing well but I don't think is going to win any popularity contest on this subreddit.
Using LunarVim... All preconfigured, ...just working. Ready to be customized https://github.com/LunarVim/LunarVim
feel free to take any of my config https://github.com/micahlagrange/machine
But with the native lsp setup, you might only lspconfig for configuring a variety of LSP servers with sane defaults. Have a look at volar config. And if you also want to install LSP server via neovim, then https://github.com/williamboman/nvim-lsp-installer. null-ls.nvim is also worth mentioning
Related posts
- Best way to go about installing LSP today?
- Is there any way to autocomplete language functions? For example, show things like fmt.Printf or fmt.Println when writing fmt.Print and pressing the autocomplete key.
- LSP Servers installation
- Another coc.nvim vs native lsp post
- E5113: Error while calling lua chunk: /home/juan/.config/nvim/lua/lsp/lsp-installer.lua:2: module 'lspconfig' not found