Skip to content

Commit

Permalink
Add Fabric AI for terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlena committed Feb 17, 2025
1 parent cb216a1 commit 078dbd0
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 86 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The whole setup follows the [Tokyo Night](https://github.com/folke/tokyonight.nv

| Function | Command |
| :---------------------- | :------ |
| AI Tool | `a` |
| Open Text Editor | `e` |
| Open File Manager | `f` |
| Open Git Browser | `g` |
Expand Down
102 changes: 29 additions & 73 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
Expand Down
35 changes: 28 additions & 7 deletions home/editor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
theme = "tokyonight";
editor = {
line-number = "relative";
soft-wrap.enable = true;
cursor-shape.insert = "bar";
file-picker.hidden = false;
};
Expand All @@ -18,6 +17,10 @@
gopls = {
config."formatting.gofumpt" = true;
};
harper-ls = {
command = "harper-ls";
args = [ "--stdio" ];
};
};
language = [
{
Expand Down Expand Up @@ -70,6 +73,10 @@
}
{
name = "markdown";
language-servers = [
"marksman"
"harper-ls"
];
auto-format = true;
formatter = {
command = "${pkgs.nodePackages.prettier}/bin/prettier";
Expand Down Expand Up @@ -130,26 +137,40 @@
];
};
}
{
name = "toml";
auto-format = true;
formatter = {
command = "${pkgs.taplo}/bin/taplo";
args = [
"fmt"
"-"
];
};
}
];
};
};

home.packages = with pkgs; [
# Language servers
bash-language-server
docker-compose-language-service
dockerfile-language-server-nodejs
golangci-lint-langserver
gopls
harper
marksman
nil
nodePackages.bash-language-server
nodePackages.dockerfile-language-server-nodejs
nodePackages.svelte-language-server
nodePackages.typescript-language-server
nodePackages.yaml-language-server
python311Packages.python-lsp-server
python312Packages.python-lsp-server
ruff
rust-analyzer
svelte-language-server
taplo
terraform-ls
typescript-language-server
vscode-langservers-extracted
yaml-language-server

# Debuggers
delve
Expand Down
1 change: 1 addition & 0 deletions home/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
home.shellAliases = {
".." = "cd ..";
"..." = "cd ../..";
a = "${pkgs.fabric-ai}/bin/fabric";
e = "${pkgs.helix}/bin/hx";
f = "${pkgs.yazi}/bin/yazi";
g = "${pkgs.gitui}/bin/gitui";
Expand Down
10 changes: 5 additions & 5 deletions home/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,22 @@

# AWS CLI
awscli.enable = true;

# Python dependency management
poetry.enable = true;
};

home.packages = with pkgs; [
air
altair
brave
cargo
clippy
curl
delta
dig
dust
fabric-ai
fx
gcc
gimp
glow
gnumake
golangci-lint
gopass
Expand Down Expand Up @@ -135,12 +134,13 @@
tree
unzip
upterm
uv
wf-recorder
wget2
whois
wireguard-tools
wl-clipboard
xdg-utils
xh
yq
zip
];
Expand Down
4 changes: 4 additions & 0 deletions home/window-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
ecosystem = {
"no_update_news" = true;
"no_donation_nag" = true;
};
};
};

Expand Down

0 comments on commit 078dbd0

Please sign in to comment.