diff --git a/modules/nixos/programs/emacs/default.nix b/modules/nixos/programs/emacs/default.nix index 39a442b..ae2b460 100644 --- a/modules/nixos/programs/emacs/default.nix +++ b/modules/nixos/programs/emacs/default.nix @@ -79,6 +79,9 @@ in nodePackages.typescript-language-server # Terraform terraform + # CSharp + omnisharp-roslyn + dotnet-sdk_8 ]; elementary.home = { @@ -91,6 +94,8 @@ in (add-to-list 'lsp-java-vmargs "-javaagent:${pkgs.elementary.lombok-jar}/share/java/lombok.jar") (setq lsp-clients-typescript-tls-path ${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server) + + (setq lsp-csharp-server-path "${pkgs.omnisharp-roslyn}/bin/OmniSharp") ''; }; file = { diff --git a/modules/nixos/programs/emacs/init.el b/modules/nixos/programs/emacs/init.el index 0ea8e28..1697195 100644 --- a/modules/nixos/programs/emacs/init.el +++ b/modules/nixos/programs/emacs/init.el @@ -217,7 +217,7 @@ :config (remember-last-theme-enable)) -(set-face-attribute 'default nil :family "JetBrains Mono Nerd Font" :height 110 :weight 'semi-bold) +(set-face-attribute 'default nil :family "Iosevka Term Nerd Font" :height 130 :weight 'semi-bold) (use-package ligature :config @@ -623,6 +623,7 @@ (use-package treesit-auto :config (delete 'yaml treesit-auto-langs) ;; yaml-mode is superior + (delete 'c-sharp treesit-auto-langs) ;; csharp-ts-mode highlighting sucks (global-treesit-auto-mode)) (use-package yasnippet) @@ -736,6 +737,12 @@ (typescript-ts-mode . lsp) (tsx-ts-mode . lsp)) +(use-package emacs + :ensure nil + :hook + (csharp-mode . lsp) + (csharp-ts-mode . lsp)) + (use-package emacs :ensure nil :mode