kabouzeid / nvim-lspinstall

Provides the missing :LspInstall for nvim-lspconfig
MIT License
526 stars 67 forks source link

Custom install path #174

Closed ranebrown closed 2 years ago

ranebrown commented 2 years ago

Is there a way to change the install path location from vim.stdpath("data") to some other location?

kabouzeid commented 2 years ago
require'lspinstall/util'.install_path = function(lang)
  return "/your/abs/path/" .. lang
end

might work. haven't tried it though

ranebrown commented 2 years ago

That did seem to work for the install but then I started getting errors about servers I don't even have installed.

cmd ["<install path>/lspinstall/./sumneko-lua-language-server"] is not executable.
cmd ["<install path>/lspinstall/./efm-langserver"] is not executable.