nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
18.9k stars 21.67k forks source link

How can I idiomatically add a language server if it's not supported by Mason? #889

Closed yehorh closed 5 months ago

yehorh commented 5 months ago

For example, dartls isn't supported by Mason, but it is already supplied with Dart. I know I can add it to the end of the config file:

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

But I don't want fragmentate configuration file. However, I don't want to fragment the configuration file.

feoh commented 5 months ago

Hi!

First, you're going to need to be willing to write and debug some configuration code on your own because you're choosing to color outside the lines.

That said, kickstart uses lspconfig so I wonder if you could easily adapt this snippet.

feoh commented 5 months ago

You might also find this closed issue on the Mason repo helpful.

feoh commented 5 months ago

Anyway, this isn't actually an issue with Kickstart. Hope these resources help! Going to close this for now. Thanks for you contribution!