home/editor: fix LSP config
This commit is contained in:
parent
f1e4c743ee
commit
214e5b9073
1 changed files with 7 additions and 46 deletions
|
@ -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";
|
||||
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";
|
||||
};
|
||||
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";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue