Update helix configuration

This commit is contained in:
Filippo Berto 2022-12-22 16:16:29 +01:00
parent 7e8f96585c
commit 2d5a12eba0
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
6 changed files with 59 additions and 36 deletions

View file

@ -1,41 +1,39 @@
{ pkgs, ... }: {
{ pkgs, ... }:
let
desktopItem = pkgs.makeDesktopItem {
name = "Helix";
exec = "hx %F";
icon = "helix";
desktopName = "Helix";
comment = "Helix text editor";
terminal = true;
categories = [ "Development" ];
mimeTypes = [
"text/english"
"text/plain"
"text/x-makefile"
"text/x-c++hdr"
"text/x-c++src"
"text/x-chdr"
"text/x-csrc"
"text/x-java"
"text/x-moc"
"text/x-pascal"
"text/x-tcl"
"text/x-tex"
"application/x-shellscript"
"text/x-c"
"text/x-c++"
];
};
in
{
programs.bash.shellAliases = { x = "hx"; };
programs.zsh.shellAliases = { x = "hx"; };
home.sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
};
home.sessionVariables = { EDITOR = "hx"; VISUAL = "hx"; };
home.packages = with pkgs; [
nodePackages.vscode-langservers-extracted
rnix-lsp
yaml-language-server
(pkgs.makeDesktopItem {
name = "Helix";
exec = "hx %F";
icon = "helix";
desktopName = "Helix";
comment = "Helix text editor";
terminal = true;
categories = [ "Development" ];
mimeTypes = [
"text/english"
"text/plain"
"text/x-makefile"
"text/x-c++hdr"
"text/x-c++src"
"text/x-chdr"
"text/x-csrc"
"text/x-java"
"text/x-moc"
"text/x-pascal"
"text/x-tcl"
"text/x-tex"
"application/x-shellscript"
"text/x-c"
"text/x-c++"
];
})
nil # Nix language server
desktopItem
];
programs.helix = {
enable = true;