Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/csharp/modules/lsp/omnisharp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ local function get_root_dir(buffer)
if file_name:sub(-#"csx") == "csx" then
return file_name:match(".*/")
end

local root_dir = vim.fn.systemlist("fd -e sln . " .. vim.loop.cwd())[1]
local root_dir = vim.fn.systemlist((vim.fn.executable("fdfind") == 1 and "fdfind" or "fd") .. " -e sln . " .. vim.loop.cwd())[1]

if root_dir == nil then
root_dir = vim.loop.cwd()
Expand Down