From 689488a4e88012c82fde3596392e98df4eaf2cbf Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 1 May 2021 16:51:46 -0700 Subject: utils: fix script_path on windows --- lua/lspconfig/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index 5c45a78c..89fca869 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -76,7 +76,7 @@ end M.script_path = function() local str = debug.getinfo(2, "S").source:sub(2) - return str:match("(.*/)") + return str:match("(.*[/\\])") end -- Some path utilities -- cgit v1.2.3-70-g09d2