home/editor: fix LSP config

This commit is contained in:
Max Headroom 2023-06-04 19:40:31 +02:00
parent f1e4c743ee
commit 214e5b9073

View file

@ -1,48 +1,9 @@
{ pkgs, inputs }: { { pkgs, inputs }: {
language = with pkgs; [ language-server = with pkgs; {
{ gopls.command = "${gopls}/bin/gopls";
language-server = {command = "${rust-analyzer}/bin/rust-analyer";}; marksman.command = "${marksman}/bin/marksman";
name = "rust"; 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";
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";
}
];
} }