Skip to content

Commit

Permalink
Random changes (#319)
Browse files Browse the repository at this point in the history
* Setup ripgrep

* Add lg shell alias for lazygit

* Setup some language servers for helix

* Add just command for formatting easily

* Add just aliases

* Setup zoxide
  • Loading branch information
francishamel authored Sep 17, 2024
1 parent 3832c94 commit a8e21ca
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions home-manager/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
./modules/git.nix
./modules/gui.nix
./modules/helix.nix
./modules/ripgrep.nix
./modules/ssh.nix
./modules/starship.nix
./modules/terminal.nix
./modules/vscode.nix
./modules/wezterm.nix
./modules/yazi.nix
./modules/zellij.nix
./modules/zoxide.nix
];
home.stateVersion = "22.11";
};
Expand Down
4 changes: 3 additions & 1 deletion home-manager/modules/git.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:

{
programs = {
Expand Down Expand Up @@ -43,5 +43,7 @@
};

lazygit.enable = true;

zsh.shellAliases.lg = "${pkgs.lazygit}/bin/lazygit";
};
}
8 changes: 8 additions & 0 deletions home-manager/modules/helix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ in
programs.helix = {
enable = true;
defaultEditor = true;
extraPackages = [
pkgs.elixir-ls
pkgs.gleam
pkgs.lua-language-server
pkgs.python312Packages.python-lsp-server
pkgs.taplo
pkgs.yaml-language-server
];
languages = {
language = [
{
Expand Down
5 changes: 5 additions & 0 deletions home-manager/modules/ripgrep.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ ... }:

{
programs.ripgrep.enable = true;
}
8 changes: 8 additions & 0 deletions home-manager/modules/zoxide.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ ... }:

{
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
}
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
default:
@just --list

alias a := activate
alias f := format
alias u := update

activate:
@nix run .#activate

update:
@nix run .#update

format:
@nix fmt

0 comments on commit a8e21ca

Please sign in to comment.