aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Elrod <44885512+LukeElrod@users.noreply.github.com>2026-03-16 12:30:08 -0700
committerGitHub <noreply@github.com>2026-03-16 15:30:08 -0400
commit5057ff754637e8b4a8cdabdda3ef8d708255976f (patch)
tree2cead0b9aa260f2d19cd20ac06b742f025a68f5c
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.tar
nvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.tar.gz
nvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.tar.bz2
nvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.tar.lz
nvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.tar.xz
nvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.tar.zst
nvim-lspconfig-5057ff754637e8b4a8cdabdda3ef8d708255976f.zip
fix(roslyn_ls): navigation in macos decompiled files #4342
-rw-r--r--lsp/roslyn_ls.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lsp/roslyn_ls.lua b/lsp/roslyn_ls.lua
index 3f584ae2..99cbebb1 100644
--- a/lsp/roslyn_ls.lua
+++ b/lsp/roslyn_ls.lua
@@ -121,6 +121,12 @@ return {
fs.joinpath(uv.os_tmpdir(), 'roslyn_ls/logs'),
'--stdio',
},
+
+ cmd_env = {
+ -- Fixes LSP navigation in decompiled files for systems with symlinked TMPDIR (macOS)
+ TMPDIR = vim.env.TMPDIR and vim.env.TMPDIR ~= '' and vim.fn.resolve(vim.env.TMPDIR) or nil,
+ },
+
filetypes = { 'cs' },
handlers = roslyn_handlers(),