LunarVim/lua/lv-lspinstall/init.lua

28 lines
1.2 KiB
Lua
Raw Normal View History

2021-03-24 00:47:53 +01:00
-- 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!
2021-07-05 03:14:01 +02:00
local config = require("lspconfig").jdtls.document_config
require("lspconfig/configs").jdtls = nil -- important, unset the loaded config again
2021-03-24 00:47:53 +01:00
-- 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
-- })
2021-03-24 00:47:53 +01:00
-- require'lspinstall/servers'.kotlin = vim.tbl_extend('error', config, {
-- install_script = [[
-- git clone https://github.com/fwcd/kotlin-language-server.git language-server
-- cd language-server
-- ./gradlew :server:installDist
-- ]],
-- uninstall_script = nil -- can be omitted
-- })
2021-07-05 03:14:01 +02:00
require("lspinstall").setup()