diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason-lspconfig/server_configurations/solang/init.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lua/mason-lspconfig/server_configurations/solang/init.lua b/lua/mason-lspconfig/server_configurations/solang/init.lua index a8678af..6dcc7a1 100644 --- a/lua/mason-lspconfig/server_configurations/solang/init.lua +++ b/lua/mason-lspconfig/server_configurations/solang/init.lua @@ -3,11 +3,13 @@ local process = require "mason-core.process" ---@param install_dir string return function(install_dir) + local llvm_bins = { vim.fn.expand(path.concat { install_dir, "llvm*", "bin" }, true, true)[1] } + if vim.env.MASON then + table.insert(llvm_bins, vim.fn.expand "$MASON/opt/solang/llvm15.0/bin") + end return { cmd_env = { - PATH = process.extend_path { - vim.fn.expand(path.concat { install_dir, "llvm*", "bin" }, true, true)[1], - }, + PATH = process.extend_path(llvm_bins), }, } end |
