From 214e5b90738f79f05eeba7d72928280e50cfdd4b Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Jun 2023 19:40:31 +0200 Subject: [PATCH] home/editor: fix LSP config --- users/max/home/editor/languages.nix | 53 ++++------------------------- 1 file changed, 7 insertions(+), 46 deletions(-) diff --git a/users/max/home/editor/languages.nix b/users/max/home/editor/languages.nix index 3aed5d2..bdaec3e 100644 --- a/users/max/home/editor/languages.nix +++ b/users/max/home/editor/languages.nix @@ -1,48 +1,9 @@ { pkgs, inputs }: { - language = with pkgs; [ - { - language-server = {command = "${rust-analyzer}/bin/rust-analyer";}; - name = "rust"; - } - { - language-server = {command = "clangd";}; - name = "c"; - } - { - language-server = {command = "clangd";}; - name = "cpp"; - } - { - language-server = {command = "${gopls}/bin/gopls";}; - name = "go"; - } - { - language-server = {command = "${python3Packages.python-lsp-server}/bin/pylsp";}; - name = "python"; - } - { - language-server = {command = "${inputs.nil.packages.${pkgs.system}.nil}/bin/nil";}; - name = "nix"; - } - { - language-server = { - args = [ "--lsp" ]; - command = "haskell-language-server-wrapper"; - }; - name = "haskell"; - } - { - language-server = { - args = [ "--stdio" ]; - command = "${yaml-language-server}/bin/yaml-language-server"; - }; - name = "yaml"; - } - { - language-server = { - command = "${pkgs.marksman}/bin/marksman"; - }; - name = "markdown"; - } - ]; + language-server = with pkgs; { + gopls.command = "${gopls}/bin/gopls"; + marksman.command = "${marksman}/bin/marksman"; + nil.command = "${inputs.nil.packages.${pkgs.system}.nil}/bin/nil"; + pylsp.command = "${python3Packages.python-lsp-server}/bin/pylsp"; + rust-analyzer.command = "${rust-analyzer}/bin/rust-analyzer"; + }; } \ No newline at end of file