Skip to content

Commit

Permalink
overlays/csharp-ls: Dont use dotnet from env
Browse files Browse the repository at this point in the history
LSP has a specific dotnet version it needs... use the latest dotnet 8
pkg for it to avoid workspace conflicts.
  • Loading branch information
khaneliman committed May 17, 2024
1 parent 5529cb3 commit 1c9fc5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/home/programs/terminal/editors/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ in
config = mkIf cfg.enable {
home = {
sessionVariables = {
# TODO: why was this set ?
# DOTNET_ROOT = "${pkgs.dotnet-sdk_8}";
EDITOR = mkIf cfg.default "nvim";
};
};
Expand Down
8 changes: 8 additions & 0 deletions overlays/csharp-ls/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_: _final: prev: {
csharp-ls = prev.csharp-ls.overrideAttrs (_oldAttrs: {
# NOTE: csharp-ls requires a very new dotnet 8 sdk. This causes issues with workspace dotnet
# collisions because dotnet commands will run off the newest SDK breaking working with lower
# version projects.
useDotnetFromEnv = false;
});
}

0 comments on commit 1c9fc5f

Please sign in to comment.