tamago324 / nlsp-settings.nvim

A plugin for setting Neovim LSP with JSON or YAML files
MIT License
316 stars 18 forks source link

Custom server executable (zls) #43

Open Sahnvour opened 1 year ago

Sahnvour commented 1 year ago

I'm trying to override the zls version installed by Mason with the more recent one I built locally.

First, I modified the file opened by :LspSettings zls to have

{
    "zls.path": "/path/to/zls"
}

as is specified by the schema, but it did not have any effect and the Mason one was still used.

Being in LunarVim, I could workaround with this bit of config but I'm not sure it's correct/optimal

vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "zls" })
require("lvim.lsp.manager").setup("zls", {
    cmd = { "/path/to/zls" },
})