nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
18.82k stars 21.48k forks source link

How to configure LSPs wihout mason-lspconfig #991

Closed Pilgrim1379 closed 3 months ago

Pilgrim1379 commented 3 months ago

I have all the language servers that I need installed globally on my system since other text editors also rely on them. At the moment if I don't install the language servers via Mason, Neovim isn't able to use the globally avaiable ones.

I find it a bit of a waste that I should have dual copies of the language servers on my system. Can you show me a way to use the already installed language servers on my system.

VlaDexa commented 3 months ago

Here's an example of code that enables use of system's rust_analyzer.

require('lspconfig').rust_analyzer.setup {}

For further information see :h lspconfig-setup and nvim-lspconfig repo