kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

move server config to easy to extend style

Open tjdevries opened this issue 2 years ago • 1 comments

Alternative to #54

@j2501987804 what do you think of this style instead?

tjdevries avatar Dec 20 '22 02:12 tjdevries

Easier to follow, I'd say, and easier to extract should you not want to set them up via mason lsp-config.

craigmac avatar Dec 20 '22 14:12 craigmac

@craigmac @MaxVerevkin thoughts on new style? found a new setup that's pretty nice for mason-lspconfig that I wasn't aware of from #74

tjdevries avatar Dec 20 '22 21:12 tjdevries

I like it. It also allows setting up new servers without editing the config (i.e. I can install a server and it will just work).

MaxVerevkin avatar Dec 20 '22 22:12 MaxVerevkin

Ditto.

craigmac avatar Dec 21 '22 00:12 craigmac

(Apologies for commenting on a closed PR; I will gladly move elsewhere!)

Does this change allow for users to extend the language server list without directly modifying the init.lua file? I've been looking at using Kickstart by symlinking into my config directory as mentioned here but haven't found a way to do what I want... Any ideas?

zdzolton avatar Dec 21 '22 15:12 zdzolton

extend the language server list without directly modifying the init.lua file?

Yes, just install them using :Mason.

MaxVerevkin avatar Dec 21 '22 17:12 MaxVerevkin

Yes, just install them using :Mason.

Got it... Thank you, @MaxVerevkin!

I was worried that servers not added to the the local servers variable would miss out the completion capabilities configured here: https://github.com/nvim-lua/kickstart.nvim/blob/521940693e10eee57f4e67dce960d2229c1441d3/init.lua#L357-L379

zdzolton avatar Dec 21 '22 19:12 zdzolton

Nope, pretty sure they get picked up. But you should read Mason documentation to understand that better (and I should probably too haha)

tjdevries avatar Dec 24 '22 06:12 tjdevries

image It seems that not all languages are settings, such as gopls, which provides {cmd,filetypes,filetypes} attributes

j2501987804 avatar Jan 13 '23 04:01 j2501987804