diff options
author | christianchiarulli <[email protected]> | 2021-04-15 00:17:48 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-04-15 00:17:48 -0400 |
commit | 2cd8c6a21cb6c9af91e631f565e31f5803cdaa7c (patch) | |
tree | 7207301e310a278c0f91b4595ddc93fd98238093 /lua/lv-lspinstall/init.lua | |
parent | 1853b4f2aa13b83ff542171060f92d3d4d961a68 (diff) |
LunarVim
Diffstat (limited to 'lua/lv-lspinstall/init.lua')
-rw-r--r-- | lua/lv-lspinstall/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/lv-lspinstall/init.lua b/lua/lv-lspinstall/init.lua new file mode 100644 index 00000000..2b6e0edb --- /dev/null +++ b/lua/lv-lspinstall/init.lua @@ -0,0 +1,18 @@ +-- 1. get the config for this server from nvim-lspconfig and adjust the cmd path. +-- relative paths are allowed, lspinstall automatically adjusts the cmd and cmd_cwd for us! +local config = require'lspconfig'.jdtls.document_config +require'lspconfig/configs'.jdtls = nil -- important, unset the loaded config again +-- config.default_config.cmd[1] = "./node_modules/.bin/bash-language-server" + +-- 2. extend the config with an install_script and (optionally) uninstall_script +require'lspinstall/servers'.jdtls = vim.tbl_extend('error', config, { + -- lspinstall will automatically create/delete the install directory for every server + install_script = [[ + git clone https://github.com/eclipse/eclipse.jdt.ls.git + cd eclipse.jdt.ls + ./mvnw clean verify + ]], + uninstall_script = nil -- can be omitted +}) + +require'lspinstall'.setup() |