Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

12/25
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:

  1. 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
  2. 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.