Course Lessons
Free Trial: 3 lessons remaining
Unlock Full Access
Adding Another Language Server
Estimated time: 5 minutes
So we've set up our three main plugins to facilitate LSP functionality in Neovim, and we used these plugins to install and configure our first language server. How do we add more?
It's simple really, here are the steps:
- Use Mason to install the language server you want. Lets say we want
tsserver
. We install that with Mason by running:MasonInstall tsserver
. Alternatively we could open mason using the:Mason
command and install manually from there - we configure our new language server in our
lsp-config
lua file. we add another entry for our language server we just installed:
lspconfig.tsserver.setup({
capabilities = capabilities
})
You've completed this lesson!
You completed this lesson less than a minute ago.