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

@ -12,6 +12,15 @@
imports = [ imports = [
../hm_modules/__basic.nix ../hm_modules/__basic.nix
# ../hm_modules/cpp.nix
# ../hm_modules/data_analysis.nix
# ../hm_modules/go.nix
# ../hm_modules/java.nix
# ../hm_modules/javascript.nix
# ../hm_modules/latex.nix
# ../hm_modules/python.nix
# ../hm_modules/rust.nix
# ../hm_modules/fonts.nix # ../hm_modules/fonts.nix
../hm_modules/helix.nix ../hm_modules/helix.nix
# ../hm_modules/kitty.nix # ../hm_modules/kitty.nix

View file

@ -0,0 +1,6 @@
{ pkgs, ... }: {
home.packages = with pkgs; [
nodePackages.vscode-langservers-extracted
yaml-language-server
];
}

View file

@ -1,16 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }:
programs.bash.shellAliases = { x = "hx"; }; let
programs.zsh.shellAliases = { x = "hx"; }; desktopItem = pkgs.makeDesktopItem {
home.sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
};
home.packages = with pkgs; [
nodePackages.vscode-langservers-extracted
rnix-lsp
yaml-language-server
(pkgs.makeDesktopItem {
name = "Helix"; name = "Helix";
exec = "hx %F"; exec = "hx %F";
icon = "helix"; icon = "helix";
@ -35,7 +25,15 @@
"text/x-c" "text/x-c"
"text/x-c++" "text/x-c++"
]; ];
}) };
in
{
programs.bash.shellAliases = { x = "hx"; };
programs.zsh.shellAliases = { x = "hx"; };
home.sessionVariables = { EDITOR = "hx"; VISUAL = "hx"; };
home.packages = with pkgs; [
nil # Nix language server
desktopItem
]; ];
programs.helix = { programs.helix = {
enable = true; enable = true;

View file

@ -38,7 +38,15 @@
imports = [ imports = [
../hm_modules/__basic.nix ../hm_modules/__basic.nix
../hm_modules/configurations.nix # ../hm_modules/cpp.nix
../hm_modules/data_analysis.nix
# ../hm_modules/go.nix
# ../hm_modules/java.nix
# ../hm_modules/javascript.nix
# ../hm_modules/latex.nix
# ../hm_modules/python.nix
# ../hm_modules/rust.nix
../hm_modules/fonts.nix ../hm_modules/fonts.nix
../hm_modules/bash.nix ../hm_modules/bash.nix
../hm_modules/bat.nix ../hm_modules/bat.nix

View file

@ -92,6 +92,7 @@
../hm_modules/__basic.nix ../hm_modules/__basic.nix
../hm_modules/cpp.nix ../hm_modules/cpp.nix
../hm_modules/data_analysis.nix
# ../hm_modules/go.nix # ../hm_modules/go.nix
# ../hm_modules/java.nix # ../hm_modules/java.nix
../hm_modules/javascript.nix ../hm_modules/javascript.nix

View file

@ -83,6 +83,7 @@
../hm_modules/__basic.nix ../hm_modules/__basic.nix
../hm_modules/cpp.nix ../hm_modules/cpp.nix
../hm_modules/data_analysis.nix
# ../hm_modules/go.nix # ../hm_modules/go.nix
# ../hm_modules/java.nix # ../hm_modules/java.nix
../hm_modules/javascript.nix ../hm_modules/javascript.nix