Update helix configuration
This commit is contained in:
parent
7e8f96585c
commit
2d5a12eba0
6 changed files with 59 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue