From 0802e0e4334c18f16259c750f96343038dc1d5e6 Mon Sep 17 00:00:00 2001 From: ishmael Date: Sat, 5 Jul 2025 00:49:04 +0530 Subject: [PATCH] bugfix: change depreceated package:get_package_path() This change fixes error on csharp nvim lsp startup, by using the old $MASON environment variable. ``` return vim.fn.expand("$MASON/packages/omnisharp/omnisharp") return package:get_install_path() .. "/omnisharp" ``` --- lua/csharp/modules/lsp/omnisharp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/csharp/modules/lsp/omnisharp.lua b/lua/csharp/modules/lsp/omnisharp.lua index 053d946..4340c12 100644 --- a/lua/csharp/modules/lsp/omnisharp.lua +++ b/lua/csharp/modules/lsp/omnisharp.lua @@ -34,7 +34,7 @@ local function get_omnisharp_cmd() package:install() end - return package:get_install_path() .. "/omnisharp" + return vim.fn.expand("$MASON/packages/omnisharp/omnisharp") end local function start_omnisharp(buffer)