hopefully fix language config
This commit is contained in:
parent
682846a5f8
commit
26ffbce7e9
3 changed files with 3701 additions and 119 deletions
|
@ -4,128 +4,12 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./languages.nix
|
||||
];
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
package = helix.packages.${system}.helix;
|
||||
languages = [
|
||||
{
|
||||
name = "rust";
|
||||
language-server.command = "${pkgs.rust-analyzer}/bin/rust-analyzer";
|
||||
}
|
||||
{
|
||||
name = "toml";
|
||||
language-server = {
|
||||
command = "${pkgs.taplo}/bin/taplo";
|
||||
args = ["lsp" "stdio"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "elixir";
|
||||
language-server.command = "${pkgs.elixir_ls}/bin/elixir-ls";
|
||||
}
|
||||
{
|
||||
name = "json";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.vscode-json-languageserver}/bin/vscode-json-languageserver";
|
||||
args = ["--stdin"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "c";
|
||||
language-server.command = "${pkgs.llvmPackages_latest.clang-unwrapped}/bin/clangd";
|
||||
}
|
||||
{
|
||||
name = "cpp";
|
||||
language-server.command = "${pkgs.llvmPackages_latest.clang-unwrapped}/bin/clangd";
|
||||
}
|
||||
{
|
||||
name = "javascript";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server";
|
||||
args = ["--stdio"];
|
||||
language-id = "javascript";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "jsx";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server";
|
||||
args = ["--stdio"];
|
||||
language-id = "javascriptreact";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "typescript";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server";
|
||||
args = ["--stdio"];
|
||||
language-id = "typescript";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "typescriptreact";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server";
|
||||
args = ["--stdio"];
|
||||
language-id = "typescriptreact";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "css";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
|
||||
args = ["--stdio"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "scss";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
|
||||
args = ["--stdio"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "html";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.vscode-html-languageserver-bin}/bin/html-languageserver";
|
||||
args = ["--stdio"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "python";
|
||||
language-server.command = "${pkgs.python3Packages.python-lsp-server}/bin/pylsp";
|
||||
}
|
||||
{
|
||||
name = "nix";
|
||||
language-server.command = "${pkgs.rnix-lsp}/bin/rnix-lsp";
|
||||
}
|
||||
{
|
||||
name = "bash";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.bash-language-server}/bin/bash-language-server";
|
||||
args = ["start"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "latex";
|
||||
language-server.command = "${pkgs.texlab}/bin/texlab";
|
||||
}
|
||||
{
|
||||
name = "java";
|
||||
language-server.command = "${pkgs.jdt-language-server}/bin/jdt-language-server";
|
||||
}
|
||||
{
|
||||
name = "vue";
|
||||
language-server.command = "${pkgs.nodePackages.vls}/bin/vls";
|
||||
}
|
||||
{
|
||||
name = "yaml";
|
||||
language-server = {
|
||||
command = "${pkgs.nodePackages.yaml-language-server}/bin/yaml-language-server";
|
||||
args = ["--stdin"];
|
||||
};
|
||||
}
|
||||
];
|
||||
settings = {
|
||||
theme = "gruvbox";
|
||||
editor = {
|
||||
|
|
1915
config/programs/helix/languages.nix
Normal file
1915
config/programs/helix/languages.nix
Normal file
File diff suppressed because it is too large
Load diff
1783
languages.toml
Normal file
1783
languages.toml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue