Skip to content

Installing LSP servers

Matthew Leong edited this page Dec 29, 2022 · 12 revisions

Prerequisites

Install via

:MasonInstall eslint_d

:MasonInstall prettierd

Installation

Cosmic utilizes the plugin mason-lspconfig in order to facilitate super easy installation of any language server that you want.

By default, CosmicNvim will auto install an initial default list of LSP servers. You may choose to uninstall certain ones and install others as you like.

Examples:

  • Install server
    • :MasonInstall rust_analyzer
  • Uninstall server
    • :MasonUninstall rust_analyzer
  • List of servers available
    • :Mason

You can also install servers by enabling them in your config file here.

Notes

While my main day to day is JS/TS development, I've found Cosmic to work also work particularly will with Go, PHP, Python, and Lua.

Clone this wiki locally