diff options
| author | William Boman <william@redwill.se> | 2023-01-19 22:59:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-19 21:59:25 +0000 |
| commit | 5b388c0de30f1605671ebfb9a20a620cda50ffce (patch) | |
| tree | 720ff962681e1eb83525700b555a682ebe79abb9 /lua | |
| parent | fix(drools-lsp): apply mason's package install path of the jar on behalf of t... (diff) | |
| download | mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.tar mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.tar.gz mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.tar.bz2 mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.tar.lz mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.tar.xz mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.tar.zst mason-lspconfig-5b388c0de30f1605671ebfb9a20a620cda50ffce.zip | |
refactor: read install dir from params (#135)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason-lspconfig/server_configurations/drools_lsp/init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/mason-lspconfig/server_configurations/drools_lsp/init.lua b/lua/mason-lspconfig/server_configurations/drools_lsp/init.lua index ae19b14..d844d9d 100644 --- a/lua/mason-lspconfig/server_configurations/drools_lsp/init.lua +++ b/lua/mason-lspconfig/server_configurations/drools_lsp/init.lua @@ -1,10 +1,10 @@ -return function() +local path = require "mason-core.path" + +---@param install_dir string +return function(install_dir) return { drools = { - jar = require("mason-core.path").concat { - require("mason-registry").get_package("drools-lsp"):get_install_path(), - "drools-lsp-server-jar-with-dependencies.jar", - }, + jar = path.concat { install_dir, "drools-lsp-server-jar-with-dependencies.jar" }, }, } end |
