Compare commits
1 Commits
master
...
76613c5e1c
| Author | SHA1 | Date | |
|---|---|---|---|
|
76613c5e1c
|
@@ -6,9 +6,9 @@ in
|
||||
{
|
||||
# ── Steam & Printer ───────────────────────────────────────────────────
|
||||
imports = [
|
||||
./system/steam.nix
|
||||
./system/printer.nix
|
||||
./system/sops.nix
|
||||
./builds/steam.nix
|
||||
./builds/printer.nix
|
||||
./builds/sops.nix
|
||||
];
|
||||
|
||||
# ── Use the systemd-boot EFI boot loader. ─────────────────────────────
|
||||
@@ -43,14 +43,11 @@ in
|
||||
};
|
||||
|
||||
nix = {
|
||||
# ── Flakes ───────────────────────────────────────────────────────────
|
||||
settings = {
|
||||
download-buffer-size = 524288000;
|
||||
experimental-features = [
|
||||
# ── Flakes ────────────────────────────────────────────────────────────
|
||||
settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
|
||||
# ── Garbage collect ───────────────────────────────────────────────────
|
||||
gc = {
|
||||
@@ -100,7 +97,6 @@ in
|
||||
"video"
|
||||
"render"
|
||||
"adbusers"
|
||||
"flatpak"
|
||||
];
|
||||
hashedPasswordFile = config.sops.secrets."user_password".path;
|
||||
};
|
||||
@@ -154,8 +150,6 @@ in
|
||||
XDG_STATE_HOME = "$HOME/.local/state";
|
||||
};
|
||||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# ── Keyring ───────────────────────────────────────────────────────────
|
||||
security.pam.services = {
|
||||
login.enableGnomeKeyring = true;
|
||||
@@ -184,10 +178,10 @@ in
|
||||
udisks2.enable = true;
|
||||
};
|
||||
|
||||
# Set stateVersion. Leave it as set.
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [ "electron-32.3.3" ];
|
||||
};
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
|
||||
125
flake.lock
generated
125
flake.lock
generated
@@ -5,11 +5,11 @@
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779876564,
|
||||
"narHash": "sha256-0cPac2/hEW5hnfNaKd+fHVjWb3dScO2VyExme1vIZDQ=",
|
||||
"lastModified": 1774616169,
|
||||
"narHash": "sha256-fP4bU3SOH5sefSl6EagqULFs+bXoo3h3VLQCCyJplo4=",
|
||||
"owner": "catppuccin",
|
||||
"repo": "nix",
|
||||
"rev": "7d283dea9a4e25cfa9a544eb40933d256cb57957",
|
||||
"rev": "e616c61cd9f7b05b32af266bc005fa266860dacf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -26,11 +26,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1778716662,
|
||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
||||
"lastModified": 1772408722,
|
||||
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
||||
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -47,11 +47,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1778716662,
|
||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
||||
"lastModified": 1769996383,
|
||||
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
||||
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -106,11 +106,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779726696,
|
||||
"narHash": "sha256-/p37CB5n6Wpw250b0Lq0CYwNq2D8uGKzDoBulyLcQqA=",
|
||||
"lastModified": 1774647770,
|
||||
"narHash": "sha256-UNNi14XiqRWWjO8ykbFwA5wRwx7EscsC+GItOVpuGjc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "1a95e2efb477959b70b4a14c51035975c0481df6",
|
||||
"rev": "02371c05a04a2876cf92e2d67a259e8f87399068",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -126,11 +126,11 @@
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779840270,
|
||||
"narHash": "sha256-bXW8ErSJJD1XnPvNrGvMYAOHqpH8uaIzovK6UWTIybM=",
|
||||
"lastModified": 1774656308,
|
||||
"narHash": "sha256-k+L2Q5DtNGkPy+JgfhpTxpngdxy+FVz269iNfCYVy5E=",
|
||||
"owner": "nix-community",
|
||||
"repo": "neovim-nightly-overlay",
|
||||
"rev": "145c6bcb4b6b34781827ca0ac8356cc5da08c098",
|
||||
"rev": "114911d841b928b2b147511bec7121af310d7a23",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -142,11 +142,11 @@
|
||||
"neovim-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1779837173,
|
||||
"narHash": "sha256-JI/pXTMZA33WAlgsO7gEq23CeKIqKEyV25G5BqN7FDw=",
|
||||
"lastModified": 1774652330,
|
||||
"narHash": "sha256-dqlsjRaLgD87D8YaC8842bhYziuRQ2qvTDgQDKL1ttQ=",
|
||||
"owner": "neovim",
|
||||
"repo": "neovim",
|
||||
"rev": "b3dfa86e02b0ce0f3ef9bc7b90dbbd790e7da31e",
|
||||
"rev": "f027f41e2cfba7be8c4841cb1a036827375bbd73",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -162,11 +162,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779855493,
|
||||
"narHash": "sha256-03zI9JM/tz+APwMvVgKXSeLhAM0oev+58/Xs//4+Bbg=",
|
||||
"lastModified": 1774666058,
|
||||
"narHash": "sha256-YOFC8tZvWAojaBBJHB8OD7ONUDUc9Sc8u4/TJ8s//WQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-vscode-extensions",
|
||||
"rev": "70518f6c1987061b291bb53abfd7846d6838c23f",
|
||||
"rev": "4ef48e66f28308955322a92f80b6c35e42f17a1c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -177,11 +177,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1778869304,
|
||||
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
|
||||
"lastModified": 1773821835,
|
||||
"narHash": "sha256-TJ3lSQtW0E2JrznGVm8hOQGVpXjJyXY2guAxku2O9A4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
|
||||
"rev": "b40629efe5d6ec48dd1efba650c797ddbd39ace0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -193,11 +193,11 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1779694939,
|
||||
"narHash": "sha256-Ly4j75O8ICaSQx3uxPnwk2x7PMF0XQvn5r0c3yBA7FI=",
|
||||
"lastModified": 1774273680,
|
||||
"narHash": "sha256-a++tZ1RQsDb1I0NHrFwdGuRlR5TORvCEUksM459wKUA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f9d8b65950353691ab56561e7c73d2e1063d810b",
|
||||
"rev": "fdc7b8f7b30fdbedec91b71ed82f36e1637483ed",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -209,11 +209,11 @@
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1779560665,
|
||||
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
|
||||
"lastModified": 1774386573,
|
||||
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
|
||||
"rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -225,11 +225,11 @@
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1779560665,
|
||||
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
|
||||
"lastModified": 1774386573,
|
||||
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
|
||||
"rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -241,11 +241,11 @@
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1776329215,
|
||||
"narHash": "sha256-a8BYi3mzoJ/AcJP8UldOx8emoPRLeWqALZWu4ZvjPXw=",
|
||||
"lastModified": 1772419343,
|
||||
"narHash": "sha256-QU3Cd5DJH7dHyMnGEFfPcZDaCAsJQ6tUD+JuUsYqnKU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b86751bc4085f48661017fa226dee99fab6c651b",
|
||||
"rev": "93178f6a00c22fcdee1c6f5f9ab92f2072072ea9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -264,11 +264,11 @@
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779816597,
|
||||
"narHash": "sha256-Kgod3gZlhSp6WozZ2pFaclXbWpjs6kQLAtldoxb85Lc=",
|
||||
"lastModified": 1774612943,
|
||||
"narHash": "sha256-hRhq5cpDyBm/ZQyuzI+/YzQEVt35d/M6ko7ADfodw9s=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "297f9341476ba7f821a42d7a2805e206ef8c6ef8",
|
||||
"rev": "2b9f8e1d659d1c7664e1b85ab1620c219672696c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -283,11 +283,11 @@
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779896237,
|
||||
"narHash": "sha256-YzY59P/YrX3gEGqjFwtIUzgTQKZhbX/Wj4PgKm/u+bE=",
|
||||
"lastModified": 1774700410,
|
||||
"narHash": "sha256-2vvPMI78Wye6HttV+mQgX0QeaSQkNgkkbXaOXlt5uhM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "4098cdd0f88012976d35c0c007194fd35eceb5c9",
|
||||
"rev": "560b181abe2bba9d130123a5dfa56f03c1d5be88",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -306,8 +306,7 @@
|
||||
"nixvim": "nixvim",
|
||||
"nur": "nur",
|
||||
"sops-nix": "sops-nix",
|
||||
"yazi": "yazi",
|
||||
"zen-browser": "zen-browser"
|
||||
"yazi": "yazi"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
@@ -318,11 +317,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1776741231,
|
||||
"narHash": "sha256-k9G98qzn+7npROUaks8VqCFm7cFtEG8ulQLBBo5lItg=",
|
||||
"lastModified": 1772420823,
|
||||
"narHash": "sha256-q3oVwz1Rx41D1D+F6vg41kpOkk3Zi3KwnkHEZp7DCGs=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "02061303f7c4c964f7b4584dabd9e985b4cd442b",
|
||||
"rev": "458eea8d905c609e9d889423e6b8a1c7bc2f792c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -338,11 +337,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1777944972,
|
||||
"narHash": "sha256-VfGRo1qTBKOe3s2gOv8LSoA6Fk19PvBlwQ1ECN0Evn8=",
|
||||
"lastModified": 1774303811,
|
||||
"narHash": "sha256-fhG4JAcLgjKwt+XHbjs8brpWnyKUfU4LikLm3s0Q/ic=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "c591bf665727040c6cc5cb409079acb22dcce33c",
|
||||
"rev": "614e256310e0a4f8a9ccae3fa80c11844fba7042",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -388,11 +387,11 @@
|
||||
"rust-overlay": "rust-overlay"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779676204,
|
||||
"narHash": "sha256-/DLVKPqrU3WuY99jrHjYuIR0yGl98mGS6izK5rC1gZM=",
|
||||
"lastModified": 1774567340,
|
||||
"narHash": "sha256-skKD1hvAvilKkK406RgNl6X/YJgkSsoZmtHmdfeoyWI=",
|
||||
"owner": "sxyazi",
|
||||
"repo": "yazi",
|
||||
"rev": "cf8b54179ea0de392629d93081afca9e5587225e",
|
||||
"rev": "935eb6b2989f8a7ce219a2a71a539365c8dccfbb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -400,26 +399,6 @@
|
||||
"repo": "yazi",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"zen-browser": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1779946062,
|
||||
"narHash": "sha256-M/2bCPYjiBTkDNV29J/00z10RM3yYnL9X74RqAHDme0=",
|
||||
"owner": "youwen5",
|
||||
"repo": "zen-browser-flake",
|
||||
"rev": "2e2c38ba20a3d614d0196e0aa44851547306e861",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "youwen5",
|
||||
"repo": "zen-browser-flake",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
@@ -33,13 +33,7 @@
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
yazi.url = "github:sxyazi/yazi";
|
||||
|
||||
zen-browser = {
|
||||
url = "github:youwen5/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
@@ -53,7 +47,6 @@
|
||||
nur,
|
||||
sops-nix,
|
||||
yazi,
|
||||
zen-browser,
|
||||
...
|
||||
}@inputs:
|
||||
{
|
||||
|
||||
@@ -56,4 +56,13 @@
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# ── whatsie insecure ──────────────────────────────────────────────────
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
"electron-32.3.3"
|
||||
"qtwebengine-5.15.19"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
./calibre.nix
|
||||
./digikam.nix
|
||||
./eww
|
||||
./filebrowser
|
||||
./filebrowser.nix
|
||||
./git.nix
|
||||
./hyprlock.nix
|
||||
./imv.nix
|
||||
@@ -28,6 +28,6 @@
|
||||
./zathura.nix
|
||||
./zoom.nix
|
||||
./zsh.nix
|
||||
./zen.nix
|
||||
./zk.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -198,18 +198,8 @@
|
||||
:text "${date}")))
|
||||
|
||||
;; ── River State ─────────────────────────────────────────────────────
|
||||
(deflisten river_tag
|
||||
:initial ""
|
||||
`ristate -t | jq -r '.tags.Unknown[0] // empty'`)
|
||||
|
||||
(deflisten river_title
|
||||
:initial "-"
|
||||
`ristate -w | jq -r '.title // "-"'`)
|
||||
|
||||
(deflisten river_layout
|
||||
:initial "-"
|
||||
`ristate -l | jq -r '.layout // "-"'`)
|
||||
|
||||
(defvar ws1 "ws-empty")
|
||||
(defvar ws2 "ws-empty")
|
||||
(defvar ws3 "ws-empty")
|
||||
(defvar ws4 "ws-empty")
|
||||
@@ -230,7 +220,7 @@
|
||||
:orientation "horizontal"
|
||||
:class "workspace-buttons"
|
||||
|
||||
(button :onclick "riverctl set-focused-tags 1" :class "workspace-button ${river_tag == \"1\" ? \"ws-current\" : \"ws-empty\"}" (label :text "1"))
|
||||
(button :onclick "riverctl set-focused-tags 1" :class "workspace-button ${ws1}" (label :text "1"))
|
||||
(label :text " ")
|
||||
(button :onclick "riverctl set-focused-tags 2" :class "workspace-button ${ws2}" (label :text "2"))
|
||||
(label :text " ")
|
||||
@@ -242,7 +232,7 @@
|
||||
(label :text " ")
|
||||
(button :onclick "riverctl set-focused-tags 6" :class "workspace-button ${ws6}" (label :text "6"))
|
||||
(label :text " ")
|
||||
;; (button :onclick "riverctl set-focused-tags 7" :class "workspace-button ${river_tag == \"7\" ? \"ws-current\" : \"ws-empty\"}" (label :text "s"))
|
||||
(button :onclick "riverctl set-focused-tags 7" :class "workspace-button ${ws7}" (label :text "7"))
|
||||
(label :text " ")
|
||||
(button :onclick "riverctl set-focused-tags 8" :class "workspace-button ${ws8}" (label :text "8"))
|
||||
(label :text " ")
|
||||
@@ -251,11 +241,11 @@
|
||||
|
||||
(defwidget widgetWindows []
|
||||
(label
|
||||
:text "${river_title}"))
|
||||
:text "${windows}"))
|
||||
|
||||
(defwidget widgetLayouts []
|
||||
(label
|
||||
:text "${river_layout}"))
|
||||
:text "${layouts}"))
|
||||
|
||||
(defwidget widgetLogSeperator []
|
||||
(label
|
||||
|
||||
8
home/programs/eww/src/scripts/ristate.sh
Executable file
8
home/programs/eww/src/scripts/ristate.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
TEMP_FILE="/tmp/river-eww-status"
|
||||
|
||||
while true; do
|
||||
ristate -t >"$TEMP_FILE.tmp"
|
||||
ristate -w >>"$TEMP_FILE.tmp"
|
||||
mv "$TEMP_FILE.tmp" "$TEMP_FILE"
|
||||
sleep 1
|
||||
done
|
||||
@@ -1,35 +1,32 @@
|
||||
layout=$(ristate -l 2>/dev/null | jq -r '.layout // ""')
|
||||
title=$(ristate -w 2>/dev/null | jq -r '.title // ""')
|
||||
tags_json=$(ristate -t 2>/dev/null)
|
||||
views_json=$(ristate -vt 2>/dev/null)
|
||||
TEMP_FILE="/tmp/river-eww-status"
|
||||
|
||||
mapfile -t focused_tags < <(
|
||||
printf '%s\n' "$views_json" |
|
||||
jq -r '.viewstag.Unknown // [] | .[] | tostring'
|
||||
)
|
||||
# Read last two lines (layout/tags and focused window)
|
||||
json=$(tail -n2 "$TEMP_FILE" | head -n1)
|
||||
win_json=$(tail -n1 "$TEMP_FILE")
|
||||
|
||||
if [ "${#focused_tags[@]}" -eq 0 ]; then
|
||||
mapfile -t focused_tags < <(
|
||||
printf '%s\n' "$tags_json" |
|
||||
jq -r '.tags.Unknown // [] | .[] | tostring'
|
||||
)
|
||||
fi
|
||||
# Extract layout
|
||||
layout=$(echo "$json" | jq -r '.layout // ""')
|
||||
|
||||
# Extract focused window title
|
||||
windows=$(echo "$win_json" | jq -r '.title // ""')
|
||||
|
||||
# Extract focused tags as array
|
||||
mapfile -t focused_tags < <(echo "$json" | jq -r '.tags.BOE // [] | .[]')
|
||||
|
||||
# Update workspace classes
|
||||
for i in $(seq 1 9); do
|
||||
class="ws-empty"
|
||||
for tag in "${focused_tags[@]}"; do
|
||||
if [[ "$tag" == "$i" ]]; then
|
||||
class="ws-current"
|
||||
echo "$tag - current"
|
||||
break
|
||||
fi
|
||||
done
|
||||
eww update "ws$i=$class"
|
||||
eww update ws$i="$class"
|
||||
done
|
||||
|
||||
eww update "layouts=$layout"
|
||||
echo "$layouts"
|
||||
eww update "windows=$title"
|
||||
echo "$windows"
|
||||
# Update layout
|
||||
eww update layouts="$layout"
|
||||
|
||||
echo "$title"
|
||||
# Output focused window for widget
|
||||
echo "$windows"
|
||||
|
||||
64
home/programs/filebrowser.nix
Normal file
64
home/programs/filebrowser.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.dolphin
|
||||
kdePackages.dolphin-plugins
|
||||
kdePackages.baloo-widgets
|
||||
kdePackages.baloo
|
||||
nautilus
|
||||
udisks
|
||||
];
|
||||
xdg.configFile."menus/applications.menu".source =
|
||||
"${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||
|
||||
# ── Yazi ──────────────────────────────────────────────────────────────
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
package = inputs.yazi.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
enableZshIntegration = true;
|
||||
settings = {
|
||||
yazi = {
|
||||
ratio = [
|
||||
1
|
||||
4
|
||||
3
|
||||
];
|
||||
sort_by = "natural";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = true;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
image_filter = "lanczos3";
|
||||
image_quality = 90;
|
||||
tab_size = 1;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = "";
|
||||
ueberzug_scale = 1;
|
||||
ueberzug_offset = [
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
];
|
||||
};
|
||||
|
||||
tasks = {
|
||||
micro_workers = 5;
|
||||
macro_workers = 10;
|
||||
bizarre_retry = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
@@ -1,255 +0,0 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
exifaudio = pkgs.fetchFromGitHub {
|
||||
owner = "Sonico98";
|
||||
repo = "exifaudio.yazi";
|
||||
rev = "4506f9d";
|
||||
sha256 = "sha256-RWCqWBpbmU3sh/A+LBJPXL/AY292blKb/zZXGvIA5/o=";
|
||||
};
|
||||
bunny = pkgs.fetchFromGitHub {
|
||||
owner = "stelcodes";
|
||||
repo = "bunny.yazi";
|
||||
rev = "71b14a3";
|
||||
sha256 = "sha256-uQO0C00yOFPWq8KEO/kEZM6tFZRc9SiXfgN7kzlwDeA=";
|
||||
};
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# kdePackages.dolphin
|
||||
# kdePackages.dolphin-plugins
|
||||
# kdePackages.baloo-widgets
|
||||
# kdePackages.baloo
|
||||
exiftool
|
||||
nautilus
|
||||
ouch
|
||||
udisks
|
||||
];
|
||||
xdg.configFile."menus/applications.menu".source =
|
||||
"${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||
|
||||
# ── Yazi ──────────────────────────────────────────────────────────────
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
package = inputs.yazi.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
enableZshIntegration = true;
|
||||
initLua = ./init.lua;
|
||||
|
||||
settings = {
|
||||
yazi = {
|
||||
ratio = [
|
||||
1
|
||||
4
|
||||
3
|
||||
];
|
||||
sort_by = "natural";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = true;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
image_filter = "lanczos3";
|
||||
image_quality = 90;
|
||||
tab_size = 1;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = "";
|
||||
ueberzug_scale = 1;
|
||||
ueberzug_offset = [
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
];
|
||||
};
|
||||
|
||||
tasks = {
|
||||
micro_workers = 5;
|
||||
macro_workers = 10;
|
||||
bizarre_retry = 5;
|
||||
};
|
||||
|
||||
plugin = {
|
||||
prepend_previewers = [
|
||||
{
|
||||
group = "preview";
|
||||
run = "exifaudio";
|
||||
mime = "audio/*";
|
||||
}
|
||||
];
|
||||
prepend_fetchers = [
|
||||
{
|
||||
group = "fetcher";
|
||||
id = "git";
|
||||
url = "*";
|
||||
run = "git";
|
||||
}
|
||||
{
|
||||
group = "fetcher";
|
||||
id = "git";
|
||||
url = "*/";
|
||||
run = "git";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
opener = {
|
||||
extract = [
|
||||
{
|
||||
run = "ouch d -y %*";
|
||||
desc = "Extract here with ouch";
|
||||
for = "windows";
|
||||
}
|
||||
{
|
||||
run = "ouch d -y $@";
|
||||
desc = "Extract here with ouch";
|
||||
for = "unix";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
keymap = {
|
||||
mgr.prepend_keymap = [
|
||||
{
|
||||
run = "plugin mount";
|
||||
on = [ "M" ];
|
||||
}
|
||||
{
|
||||
run = "plugin ouch";
|
||||
on = [ "C" ];
|
||||
}
|
||||
{
|
||||
run = "plugin bunny";
|
||||
on = [
|
||||
";"
|
||||
];
|
||||
desc = "Start bunny";
|
||||
}
|
||||
{
|
||||
run = "plugin bunny fuzzy";
|
||||
on = [
|
||||
"'"
|
||||
];
|
||||
desc = "Start bunny fuzzy search";
|
||||
}
|
||||
{
|
||||
run = "plugin chmod";
|
||||
on = [
|
||||
"c"
|
||||
"m"
|
||||
];
|
||||
desc = "Chmod on selected files";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- paste";
|
||||
on = [
|
||||
"R"
|
||||
"p"
|
||||
"p"
|
||||
];
|
||||
desc = "sudo paste";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- paste --force";
|
||||
on = [
|
||||
"R"
|
||||
"P"
|
||||
];
|
||||
desc = "sudo paste";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- rename";
|
||||
on = [
|
||||
"R"
|
||||
"r"
|
||||
];
|
||||
desc = "sudo rename";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- link";
|
||||
on = [
|
||||
"R"
|
||||
"p"
|
||||
"l"
|
||||
];
|
||||
desc = "sudo link";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- link --relative";
|
||||
on = [
|
||||
"R"
|
||||
"p"
|
||||
"r"
|
||||
];
|
||||
desc = "sudo link relative path";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- hardlink";
|
||||
on = [
|
||||
"R"
|
||||
"p"
|
||||
"L"
|
||||
];
|
||||
desc = "sudo hardlink";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- create";
|
||||
on = [
|
||||
"R"
|
||||
"a"
|
||||
];
|
||||
desc = "sudo create";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- remove";
|
||||
on = [
|
||||
"R"
|
||||
"d"
|
||||
];
|
||||
desc = "sudo trash";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- remove --permanently";
|
||||
on = [
|
||||
"R"
|
||||
"D"
|
||||
];
|
||||
desc = "sudo delete";
|
||||
}
|
||||
{
|
||||
run = "plugin sudo -- chmod";
|
||||
on = [
|
||||
"R"
|
||||
"m"
|
||||
];
|
||||
desc = "sudo chmod";
|
||||
}
|
||||
{
|
||||
run = [ "plugin wl-clipboard" ];
|
||||
on = [ "<C-y" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
plugins = {
|
||||
bunny = bunny;
|
||||
chmod = pkgs.yaziPlugins.chmod;
|
||||
exifaudio = exifaudio;
|
||||
git = pkgs.yaziPlugins.git;
|
||||
mount = pkgs.yaziPlugins.mount;
|
||||
ouch = pkgs.yaziPlugins.ouch;
|
||||
sudo = pkgs.yaziPlugins.sudo;
|
||||
wl-clipboard = pkgs.yaziPlugins.wl-clipboard;
|
||||
};
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
require("bunny"):setup({
|
||||
hops = {
|
||||
{ key = "/", path = "/", desc = "Root" },
|
||||
{ key = { "n", "c" }, path = "/etc/nixos", desc = "NixOS config" },
|
||||
{ key = { "n", "s" }, path = "/nix/store", desc = "Nix store" },
|
||||
{ key = "~", path = "~", desc = "Home" },
|
||||
{ key = "r", path = "~/Repos", desc = "Repos" },
|
||||
{ key = "d", path = "~/Downloads", desc = "Downloads" },
|
||||
{ key = "D", path = "~/Documents", desc = "Documents" },
|
||||
{ key = "c", path = "~/.config", desc = "Config files" },
|
||||
{ key = { "N", "h" }, path = "~/Nextcloud", desc = "Nexctloud root" },
|
||||
{ key = { "N", "d" }, path = "~/Nextcloud/Data/Documents", desc = "Nextcloud documents" },
|
||||
{ key = { "N", "u" }, path = "~/Nextcloud/Uni", desc = "Nextcloud uni" },
|
||||
{ key = { "N", "c" }, path = "~/Nextcloud/Uni/26-SoSe/26-SoSe-Francais", desc = "Nextcloud uni current" },
|
||||
{ key = { "m", "b" }, path = "/mnt", desc = "Mount base" },
|
||||
{ key = { "m", "r" }, path = "/mnt/remote", desc = "Mount remote" },
|
||||
-- key and path attributes are required, desc is optional
|
||||
},
|
||||
desc_strategy = "path", -- If desc isn't present, use "path" or "filename", default is "path"
|
||||
ephemeral = true, -- Enable ephemeral hops, default is true
|
||||
tabs = true, -- Enable tab hops, default is true
|
||||
notify = false, -- Notify after hopping, default is false
|
||||
fuzzy_cmd = "fzf", -- Fuzzy searching command, default is "fzf"
|
||||
})
|
||||
|
||||
require("git"):setup({
|
||||
-- Order of status signs showing in the linemode
|
||||
order = 1500,
|
||||
})
|
||||
@@ -12,7 +12,7 @@
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
size = 8;
|
||||
size = 6;
|
||||
name = "Fira Code";
|
||||
package = pkgs.fira-code;
|
||||
};
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
signal-desktop
|
||||
slack
|
||||
telegram-desktop
|
||||
whatsie
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ inputs, ... }:
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@@ -6,36 +6,39 @@
|
||||
./plugins
|
||||
];
|
||||
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
|
||||
nixpkgs = {
|
||||
useGlobalPackages = false;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
nixpkgs.useGlobalPackages = false;
|
||||
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
keymaps = [
|
||||
{
|
||||
key = "Y";
|
||||
action = ''"+y'';
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
key = "P";
|
||||
action = ''"+p'';
|
||||
options.silent = true;
|
||||
}
|
||||
];
|
||||
clipboard = {
|
||||
providers = {
|
||||
wl-copy.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
lualoader.enable = true;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
texliveFull
|
||||
texlivePackages.standalone
|
||||
texlivePackages.relsize # needed for BA
|
||||
# papis-nvim
|
||||
];
|
||||
extraConfigVim = ''
|
||||
filetype plugin on
|
||||
set nocompatible
|
||||
syntax on
|
||||
'';
|
||||
|
||||
globals = {
|
||||
mapleader = " ";
|
||||
maplocalleader = ",";
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
aerial = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = [
|
||||
"AerialToggle"
|
||||
"AerialNavToggle"
|
||||
];
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>a";
|
||||
group = "Aerial";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>at";
|
||||
action = "<cmd>AerialToggle<cr>";
|
||||
options.desc = "Aerial tab";
|
||||
}
|
||||
{
|
||||
key = "<leader>an";
|
||||
action = "<cmd>AerialNavToggle<cr>";
|
||||
options.desc = "Aerial navgation";
|
||||
}
|
||||
{
|
||||
key = "<leader>a.";
|
||||
action = "<cmd>AerialNext<cr>";
|
||||
options.desc = "Aerial next";
|
||||
}
|
||||
{
|
||||
key = "<leader>a,";
|
||||
action = "<cmd>AerialPrev<cr>";
|
||||
options.desc = "Aerial previous";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,13 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.nvim-autopairs = {
|
||||
programs.nixvim.plugins = {
|
||||
nvim-autopairs = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.check_ts = true;
|
||||
settings = {
|
||||
check_ts = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
barbar.enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
barbar = {
|
||||
enable = true;
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>b";
|
||||
@@ -22,49 +22,62 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>BufferPrevious<CR>";
|
||||
key = "<leader>,";
|
||||
mode = "n";
|
||||
options.desc = "Tab ";
|
||||
options = {
|
||||
desc = "Tab ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferNext<CR>";
|
||||
key = "<leader>.";
|
||||
mode = "n";
|
||||
options.desc = "Tab ";
|
||||
options = {
|
||||
desc = "Tab ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferMovePrevious<CR>";
|
||||
key = "<leader>b<";
|
||||
mode = "n";
|
||||
options.desc = "Re-Order ";
|
||||
options = {
|
||||
desc = "Re-Order ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferMoveNext<CR>";
|
||||
key = "<leader>b>";
|
||||
mode = "n";
|
||||
options.desc = "Re-Order ";
|
||||
options = {
|
||||
desc = "Re-Order ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferClose<CR>";
|
||||
key = "<leader>bc";
|
||||
mode = "n";
|
||||
options.desc = "Close";
|
||||
options = {
|
||||
desc = "Close";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>tabnew +Telescope\\ yazi<CR>"; # TODO: does not work
|
||||
action = "<CMD>tabnew +Telescope\\ file_browser<CR>";
|
||||
key = "<leader>bn";
|
||||
mode = "n";
|
||||
options.desc = "Create";
|
||||
options = {
|
||||
desc = "Create";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferPick<CR>";
|
||||
key = "<leader>bp";
|
||||
mode = "n";
|
||||
options.desc = "Pick Tab";
|
||||
options = {
|
||||
desc = "Pick Tab";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.bullets = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
bullets = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" "txt" "gitcommit" ];
|
||||
|
||||
settings = {
|
||||
enabled_file_types = [
|
||||
"markdown"
|
||||
@@ -16,17 +16,17 @@
|
||||
custom_mappings = [
|
||||
[
|
||||
"nmap"
|
||||
"<leader>mn"
|
||||
"o"
|
||||
"<Plug>(bullets-newline)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
"<leader>mr"
|
||||
"gN"
|
||||
"<Plug>(bullets-renumber)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
"<leader>mr"
|
||||
"gN"
|
||||
"<Plug>(bullets-renumber)"
|
||||
]
|
||||
[
|
||||
@@ -62,4 +62,7 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,35 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
keymap.preset = "default";
|
||||
snippets.preset = "luasnip";
|
||||
|
||||
completion.accept = {
|
||||
keymap = {
|
||||
preset = "default";
|
||||
};
|
||||
snippets = {
|
||||
preset = "luasnip";
|
||||
};
|
||||
completion = {
|
||||
accept = {
|
||||
auto_brackets = {
|
||||
enabled = true;
|
||||
kind_resolution.enabled = true;
|
||||
|
||||
kind_resolution = {
|
||||
enabled = true;
|
||||
};
|
||||
semantic_token_resolution = {
|
||||
enabled = true;
|
||||
timeout_ms = 400;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
sources = {
|
||||
per_filetype.yaml = [ "papis" ];
|
||||
|
||||
per_filetype = {
|
||||
yaml = [ "papis" ];
|
||||
};
|
||||
providers = {
|
||||
spell = {
|
||||
module = "blink-cmp-spell";
|
||||
@@ -32,23 +37,19 @@
|
||||
score_offset = 100;
|
||||
opts = { };
|
||||
};
|
||||
|
||||
vimtex = {
|
||||
name = "vimtex";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
|
||||
dap = {
|
||||
name = "dap";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
|
||||
mkdnflow = {
|
||||
name = "mkdnflow";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
};
|
||||
|
||||
default = [
|
||||
"lsp"
|
||||
"mkdnflow"
|
||||
@@ -67,4 +68,6 @@
|
||||
cmp-vimtex.enable = true;
|
||||
# cmp-dap.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.colorizer = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [
|
||||
"css"
|
||||
"scss"
|
||||
"less"
|
||||
"sass"
|
||||
"html"
|
||||
"svg"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -5,9 +5,7 @@
|
||||
plugins = {
|
||||
comment-box = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>c";
|
||||
@@ -16,32 +14,41 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>cb";
|
||||
action = "<Cmd>CBccbox<CR>";
|
||||
options.desc = "Box Title";
|
||||
options = {
|
||||
desc = "Box Title";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>ct";
|
||||
action = "<Cmd>CBllline<CR>";
|
||||
options.desc = "Titled Line";
|
||||
options = {
|
||||
desc = "Titled Line";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>cl";
|
||||
action = "<Cmd>CBline<CR>";
|
||||
options.desc = "Simple Line";
|
||||
options = {
|
||||
desc = "Simple Line";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>cm";
|
||||
action = "<Cmd>CBllbox14<CR>";
|
||||
options.desc = "Marked";
|
||||
options = {
|
||||
desc = "Marked";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>cd";
|
||||
action = "<Cmd>CBd<CR>";
|
||||
options.desc = "Remove a Box";
|
||||
options = {
|
||||
desc = "Remove a Box";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.comment = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
comment = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.mappings.basic = true;
|
||||
settings = {
|
||||
mappings = {
|
||||
basic = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,13 +21,13 @@
|
||||
programs.nixvim.plugins = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
formatters_by_ft = {
|
||||
lua = [ "stylua" ];
|
||||
rust = [ "rustfmt" ];
|
||||
python = [ "black" ];
|
||||
python = [
|
||||
"black"
|
||||
];
|
||||
haskell = [ "fourmolu" ];
|
||||
terraform = [ "hcl" ];
|
||||
elixir = [ "mix" ];
|
||||
@@ -47,7 +47,9 @@
|
||||
yaml = [ "prettierd" ];
|
||||
nu = [ "topiary_nu" ];
|
||||
nix = [ "nixfmt" ];
|
||||
tex = [ "tex-fmt" ];
|
||||
tex = [
|
||||
"tex-fmt"
|
||||
];
|
||||
"_" = [
|
||||
"squeeze_blanks"
|
||||
"trim_whitespace"
|
||||
@@ -92,7 +94,9 @@
|
||||
"2"
|
||||
];
|
||||
};
|
||||
tex-fmt.command = "tex-fmt";
|
||||
tex-fmt = {
|
||||
command = "tex-fmt";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
csvview = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = [
|
||||
"CsvViewEnable"
|
||||
"CsvViewToggle"
|
||||
];
|
||||
|
||||
settings = {
|
||||
parser.async_chunksize = 30;
|
||||
view = {
|
||||
display_mode = "border";
|
||||
spacing = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>z";
|
||||
group = "CSV";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>ze";
|
||||
action = "<Cmd>CsvViewEnable<CR>";
|
||||
options.desc = "Csv enable preview";
|
||||
}
|
||||
{
|
||||
key = "<leader>zd";
|
||||
action = "<Cmd>CsvViewDisable<CR>";
|
||||
options.desc = "Csv disable preview";
|
||||
}
|
||||
{
|
||||
key = "<leader>zt";
|
||||
action = "<Cmd>CsvViewToggle<CR>";
|
||||
options.desc = "Csv toggle preview";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
@@ -13,13 +13,10 @@
|
||||
plugins = {
|
||||
dap-python = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
dap = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
luaConfig.post = ''
|
||||
local dap, dapui = require("dap"), require("dapui")
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
@@ -35,13 +32,11 @@
|
||||
dapui.close()
|
||||
end
|
||||
'';
|
||||
|
||||
adapters = {
|
||||
executables = {
|
||||
lldb = {
|
||||
command = "${pkgs.lldb_19}/bin/lldb-dap";
|
||||
};
|
||||
|
||||
gdb = {
|
||||
command = "${pkgs.gdb}/bin/gdb";
|
||||
args = [
|
||||
@@ -50,7 +45,6 @@
|
||||
"set print pretty on"
|
||||
];
|
||||
};
|
||||
|
||||
rust-gdb = {
|
||||
command = "${pkgs.rustc}/bin/rust-gdb";
|
||||
args = [
|
||||
@@ -61,8 +55,9 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
signs.dapBreakpoint.text = "";
|
||||
signs = {
|
||||
dapBreakpoint.text = "";
|
||||
};
|
||||
configurations = {
|
||||
cpp = [
|
||||
{
|
||||
@@ -109,7 +104,6 @@
|
||||
cwd = "\${workspaceFolder}";
|
||||
}
|
||||
];
|
||||
|
||||
c = [
|
||||
{
|
||||
name = "Launch file";
|
||||
@@ -142,7 +136,6 @@
|
||||
args = { };
|
||||
}
|
||||
];
|
||||
|
||||
rust = [
|
||||
{
|
||||
name = "Launch";
|
||||
@@ -189,17 +182,12 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
dap-ui = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
dap-virtual-text = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>d";
|
||||
@@ -208,55 +196,70 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>dt";
|
||||
action.__raw = "function() require('dap').toggle_breakpoint() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Toggle Breakpoint";
|
||||
options = {
|
||||
desc = "Toggle Breakpoint";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dc";
|
||||
action.__raw = "function() require('dap').continue() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Continue";
|
||||
options = {
|
||||
desc = "Continue";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dc";
|
||||
action.__raw = "function() require('dap').continue() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Continue";
|
||||
options = {
|
||||
desc = "Continue";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>di";
|
||||
action.__raw = "function() require('dap').step_into() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Step Into";
|
||||
options = {
|
||||
desc = "Step Into";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>do";
|
||||
action.__raw = "function() require('dap').step_over() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Step Over";
|
||||
options = {
|
||||
desc = "Step Over";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>du";
|
||||
action.__raw = "function() require('dap').step_out() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Step Out";
|
||||
options = {
|
||||
desc = "Step Out";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dr";
|
||||
action.__raw = "function() require('dap').repl.open() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Open REPL";
|
||||
options = {
|
||||
desc = "Open REPL";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dl";
|
||||
action.__raw = "function() require('dap').run_last() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Run Last";
|
||||
options = {
|
||||
desc = "Run Last";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dq";
|
||||
@@ -269,21 +272,27 @@
|
||||
end
|
||||
'';
|
||||
mode = [ "n" ];
|
||||
options.desc = "Terminate";
|
||||
options = {
|
||||
desc = "Terminate";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>db";
|
||||
action.__raw = "function() require('dap').list_breakpoints() end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "List Breakpoints";
|
||||
|
||||
options = {
|
||||
desc = "List Breakpoints";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>de";
|
||||
action.__raw = "function() require('dap').set_exception_breakpoints({ ' all ' }) end";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Set Exception Breakpoints";
|
||||
options = {
|
||||
desc = "Set Exception Breakpoints";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
{
|
||||
imports = [
|
||||
./aerial.nix
|
||||
./autopairs.nix
|
||||
./barbar.nix
|
||||
./bullets.nix
|
||||
./cmp.nix
|
||||
./colorizor.nix
|
||||
./comment-box.nix
|
||||
./comment.nix
|
||||
./conform.nix
|
||||
./csvview.nix
|
||||
./dap.nix
|
||||
./diffview.nix
|
||||
./dynomark.nix
|
||||
./edgy.nix
|
||||
./gitsigns.nix
|
||||
./img-clip.nix
|
||||
./haskell-tools.nix
|
||||
./knap.nix
|
||||
./lualine.nix
|
||||
./leap.nix
|
||||
./lsp.nix
|
||||
./lz-n.nix
|
||||
./ltex-extra.nix
|
||||
./lualine.nix
|
||||
./markdown-preview.nix
|
||||
./mkdnflow.nix
|
||||
./neoscroll.nix
|
||||
@@ -26,16 +25,18 @@
|
||||
./noice.nix
|
||||
./notify.nix
|
||||
./oil.nix
|
||||
./openscad.nix
|
||||
./otter.nix
|
||||
./papis.nix
|
||||
./rainbow.nix
|
||||
./render-markdown.nix
|
||||
./rustaceanvim.nix
|
||||
./peek.nix
|
||||
./markdown-preview.nix
|
||||
./smart-splits.nix
|
||||
./snippets.nix
|
||||
./sniprun.nix
|
||||
./startup.nix
|
||||
./surround.nix
|
||||
./telescope.nix
|
||||
./texpresso.nix
|
||||
./todo-comments.nix
|
||||
./toggleterm.nix
|
||||
./treesitter.nix
|
||||
@@ -43,12 +44,10 @@
|
||||
./typst-preview.nix
|
||||
./typst-vim.nix
|
||||
./undotree.nix
|
||||
./unified.nix
|
||||
./vimtex.nix
|
||||
./web-devicons.nix
|
||||
./which-key.nix
|
||||
./wilder.nix
|
||||
./yazi.nix
|
||||
./yuck.nix
|
||||
./yanky.nix
|
||||
./zk.nix
|
||||
];
|
||||
}
|
||||
|
||||
12
home/programs/nixvim/plugins/diffview.nix
Normal file
12
home/programs/nixvim/plugins/diffview.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
diffview = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,7 +14,11 @@ let
|
||||
in
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraPlugins = [ dynomark-nvim ];
|
||||
|
||||
extraPlugins = [
|
||||
dynomark-nvim
|
||||
];
|
||||
|
||||
extraConfigLua = "require('dynomark').setup({})";
|
||||
|
||||
keymaps = [
|
||||
@@ -22,13 +26,17 @@ in
|
||||
key = "<leader>v";
|
||||
action = "<Plug>(DynomarkToggle)";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Toggle Dynomark";
|
||||
options = {
|
||||
desc = "Toggle Dynomark";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>V";
|
||||
action = "<Plug>(DynomarkRun)";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Run Dynomark query under cursor";
|
||||
options = {
|
||||
desc = "Run Dynomark query under cursor";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -9,12 +9,10 @@
|
||||
# To prevent this, set `splitkeep` to either `screen` or `topline`.
|
||||
splitkeep = "screen";
|
||||
};
|
||||
|
||||
plugins = {
|
||||
edgy = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
bottom.__raw = ''
|
||||
{
|
||||
@@ -39,7 +37,6 @@
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
||||
left.__raw = ''
|
||||
{
|
||||
-- Neo-tree filesystem always takes half the screen height
|
||||
@@ -80,3 +77,4 @@
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.gitsigns = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
haskellPackages.ghci-dap
|
||||
];
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [ haskell-tools-nvim ];
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
haskell-tools-nvim
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.img-clip = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [
|
||||
"md"
|
||||
"tex"
|
||||
"typ"
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>p";
|
||||
action = "<cmd>PasteImage<cr>";
|
||||
options.desc = "Paste image";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# TODO: Make filetype keybindings work
|
||||
let
|
||||
keys = [
|
||||
{
|
||||
@@ -10,7 +11,9 @@ let
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Close Viewer (knap)";
|
||||
options = {
|
||||
desc = "Close Viewer (knap)";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = "function() require('knap').toggle_autopreviewing() end";
|
||||
@@ -20,7 +23,9 @@ let
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Toggle Auto-Processing (knap)";
|
||||
options = {
|
||||
desc = "Toggle Auto-Processing (knap)";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = "function() require('knap').forward_jump() end";
|
||||
@@ -30,7 +35,9 @@ let
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "SyncTeX Forward Search (Knap)";
|
||||
options = {
|
||||
desc = "SyncTeX Forward Search (Knap)";
|
||||
};
|
||||
}
|
||||
];
|
||||
in
|
||||
@@ -40,18 +47,22 @@ in
|
||||
texliveFull
|
||||
rubber
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [ knap ];
|
||||
globals.knap_settings = {
|
||||
globals = {
|
||||
knap_settings = {
|
||||
htmltohtmlviewerlaunch = "luakit %outputfile%";
|
||||
mdtohtmlviewerlaunch = "luakit %outputfile%";
|
||||
markdowntohtmlviewerlaunch = "luakit %outputfile%";
|
||||
};
|
||||
|
||||
};
|
||||
files = {
|
||||
"ftplugin/latex.lua".keymaps = keys;
|
||||
"ftplugin/markdown.lua".keymaps = keys;
|
||||
"ftplugin/latex.lua" = {
|
||||
keymaps = keys;
|
||||
};
|
||||
"ftplugin/markdown.lua" = {
|
||||
keymaps = keys;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
30
home/programs/nixvim/plugins/leap.nix
Normal file
30
home/programs/nixvim/plugins/leap.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
leap = {
|
||||
enable = true;
|
||||
settings = {
|
||||
case_sensitive = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "s";
|
||||
action = "<Plug>(leap)";
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "S";
|
||||
action = "<Plug>(leap-from-window)";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -7,10 +7,7 @@
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
plugins.lsp.enable = true;
|
||||
|
||||
lsp = {
|
||||
luaConfig = {
|
||||
@@ -20,29 +17,65 @@
|
||||
'';
|
||||
};
|
||||
servers = {
|
||||
nixd.enable = false;
|
||||
rust_analyzer.enable = true;
|
||||
leanls.enable = true;
|
||||
nixd = {
|
||||
enable = false;
|
||||
};
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
};
|
||||
leanls = {
|
||||
enable = true;
|
||||
};
|
||||
nil_ls = {
|
||||
enable = !config.programs.nixvim.plugins.lsp.servers.nixd.enable;
|
||||
config = {
|
||||
nil = {
|
||||
formatting.command = [ "nixfmt" ];
|
||||
diagnostics.ignored = [ ];
|
||||
nix.flake.autoArchive = true;
|
||||
formatting = {
|
||||
command = [
|
||||
"nixfmt"
|
||||
];
|
||||
};
|
||||
diagnostics = {
|
||||
ignored = [ ];
|
||||
};
|
||||
nix = {
|
||||
flake = {
|
||||
autoArchive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
nushell.enable = true;
|
||||
pylsp.enable = true;
|
||||
pylyzer.enable = false;
|
||||
pyright.enable = true;
|
||||
clangd.enable = true;
|
||||
zk.enable = true;
|
||||
elixirls.enable = true;
|
||||
marksman.enable = true;
|
||||
texlab.enable = true;
|
||||
lua_ls.enable = true;
|
||||
};
|
||||
};
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
pylsp = {
|
||||
enable = true;
|
||||
};
|
||||
pylyzer = {
|
||||
enable = false;
|
||||
};
|
||||
pyright = {
|
||||
enable = true;
|
||||
};
|
||||
clangd = {
|
||||
enable = true;
|
||||
};
|
||||
zk = {
|
||||
enable = true;
|
||||
};
|
||||
elixirls = {
|
||||
enable = true;
|
||||
};
|
||||
marksman = {
|
||||
enable = true;
|
||||
};
|
||||
texlab = {
|
||||
enable = true;
|
||||
};
|
||||
lua_ls = {
|
||||
enable = true;
|
||||
};
|
||||
ltex_plus = {
|
||||
enable = true;
|
||||
package = pkgs.ltex-ls-plus;
|
||||
@@ -60,7 +93,9 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
tinymist.enable = true;
|
||||
tinymist = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
9
home/programs/nixvim/plugins/ltex-extra.nix
Normal file
9
home/programs/nixvim/plugins/ltex-extra.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
ltex-extra = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,48 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.lualine = {
|
||||
programs.nixvim.plugins = {
|
||||
lualine = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
# settings = {
|
||||
# sections = {
|
||||
# lualine_c = [
|
||||
# {
|
||||
# __unkeyed-1 = {
|
||||
# __raw = ''
|
||||
# function()
|
||||
# require("trouble").statusline({
|
||||
# mode = "lsp_document_symbols",
|
||||
# groups = {},
|
||||
# title = false,
|
||||
# filter = { range = true },
|
||||
# format = "{kind_icon}{symbol.name:Normal}",
|
||||
# -- The following line is needed to fix the background color
|
||||
# -- Set it to the lualine section you want to use
|
||||
# hl_group = "lualine_c_normal",
|
||||
# }
|
||||
# ).get
|
||||
# end
|
||||
# '';
|
||||
# };
|
||||
# cond = {
|
||||
# __raw = ''
|
||||
# require("trouble").statusline({
|
||||
# mode = "lsp_document_symbols",
|
||||
# groups = {},
|
||||
# title = false,
|
||||
# filter = { range = true },
|
||||
# format = "{kind_icon}{symbol.name:Normal}",
|
||||
# -- The following line is needed to fix the background color
|
||||
# -- Set it to the lualine section you want to use
|
||||
# hl_group = "lualine_c_normal",
|
||||
# }).has
|
||||
# '';
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.lz-n = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.markdown-preview = {
|
||||
programs.nixvim.plugins = {
|
||||
markdown-preview = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraConfigLua = ''vim.api.nvim_create_autocmd("FileType", {pattern = "markdown", command = "set awa"})'';
|
||||
extraConfigLua = ''
|
||||
vim.api.nvim_create_autocmd("FileType", {pattern = "markdown", command = "set awa"})
|
||||
'';
|
||||
|
||||
plugins = {
|
||||
mkdnflow = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" ];
|
||||
|
||||
settings = {
|
||||
links = {
|
||||
style = "wiki";
|
||||
@@ -31,7 +31,6 @@
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
modules = {
|
||||
conceal = true;
|
||||
cursor = true;
|
||||
@@ -43,12 +42,10 @@
|
||||
tables = true;
|
||||
yaml = true;
|
||||
};
|
||||
|
||||
filetypes = {
|
||||
markdown = true;
|
||||
qmd = true;
|
||||
};
|
||||
|
||||
to_do = {
|
||||
symbols = [
|
||||
" "
|
||||
@@ -57,7 +54,6 @@
|
||||
];
|
||||
status_propagation.up = true;
|
||||
};
|
||||
|
||||
foldtext = {
|
||||
title_transformer.__raw = ''
|
||||
function()
|
||||
@@ -108,7 +104,6 @@
|
||||
middle = "─";
|
||||
};
|
||||
};
|
||||
|
||||
mappings = {
|
||||
MkdnEnter = [
|
||||
[
|
||||
@@ -170,7 +165,6 @@
|
||||
"<C-Space>"
|
||||
];
|
||||
};
|
||||
|
||||
create_dirs = true;
|
||||
new_file_template = {
|
||||
use_template = true;
|
||||
@@ -181,12 +175,8 @@
|
||||
template = ''
|
||||
---
|
||||
title: {{ title }}
|
||||
description:
|
||||
published: true
|
||||
date: {{ date }}
|
||||
tags: private
|
||||
editor: markdown
|
||||
dateCreated: {{ date }}
|
||||
tags: []
|
||||
---
|
||||
# {{ title }}
|
||||
'';
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
programs.nixvim.plugins = {
|
||||
neoscroll = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
cursor_scrolls_alone = true;
|
||||
easing_function = "quadratic";
|
||||
@@ -24,6 +22,7 @@
|
||||
respect_scrolloff = false;
|
||||
stop_eof = true;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.neo-tree = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
neo-tree = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.enable_git_status = true;
|
||||
settings = {
|
||||
enable_git_status = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.noice = {
|
||||
programs.nixvim.plugins = {
|
||||
noice = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
lsp.override = {
|
||||
"vim.lsp.util.convert_input_to_markdown_lines" = true;
|
||||
"vim.lsp.util.stylize_markdown" = true;
|
||||
};
|
||||
|
||||
prests = {
|
||||
bottom_search = true;
|
||||
command_palette = true;
|
||||
@@ -20,4 +18,5 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,13 +2,16 @@
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.notify = {
|
||||
plugins = {
|
||||
notify = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.render = "wrapped-compact";
|
||||
settings = {
|
||||
render = "wrapped-compact";
|
||||
};
|
||||
};
|
||||
};
|
||||
opts = {
|
||||
termguicolors = true;
|
||||
};
|
||||
|
||||
opts.termguicolors = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.oil = {
|
||||
programs.nixvim.plugins = {
|
||||
oil = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
{
|
||||
programs.nixvim.plugins.openscad = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetype = [ "scad" ];
|
||||
|
||||
luaConfig.post = ''
|
||||
vim.g.openscad_fuzzy_finder = 'skim'
|
||||
-- when the pdf_command is run, the last argument will be the pdf filename
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.otter = {
|
||||
programs.nixvim.plugins = {
|
||||
otter = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,13 +2,15 @@
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.papis = {
|
||||
plugins = {
|
||||
papis = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
yq_bin = "${pkgs.yq-go}/bin/yq";
|
||||
search.provider = "telescope";
|
||||
search = {
|
||||
provider = "telescope";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -17,7 +19,9 @@
|
||||
key = "<leader>pp";
|
||||
action = "<CMD>Papis search<CR>";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Papis";
|
||||
options = {
|
||||
desc = "Papis";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
12
home/programs/nixvim/plugins/peek.nix
Normal file
12
home/programs/nixvim/plugins/peek.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
peek = {
|
||||
enable = true;
|
||||
settings = {
|
||||
app = "firefox";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.rainbow = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
active = 1;
|
||||
conf = {
|
||||
guifgs = [
|
||||
"#f5c2e7"
|
||||
"#eba0ac"
|
||||
"#a6e3a1"
|
||||
"#74c7ec"
|
||||
"#f5e0dc"
|
||||
"#cba6f7"
|
||||
"#fab387"
|
||||
"#94e2d5"
|
||||
"#89b4fa"
|
||||
"#f2cdcd"
|
||||
"#f38ba8"
|
||||
"#f9e2af"
|
||||
"#89dceb"
|
||||
"#b4befe"
|
||||
];
|
||||
operators = "_,_";
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\\begin/ end=/\\end/ fold"
|
||||
];
|
||||
separately = {
|
||||
"*".parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
];
|
||||
css = 0;
|
||||
haskell.parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/\[/ end=/\]/ fold"
|
||||
"start=/\v\{\ze[^-]/ end=/}/ fold"
|
||||
];
|
||||
lisp.guifgs = [
|
||||
"#f5c2e7"
|
||||
"#eba0ac"
|
||||
"#a6e3a1"
|
||||
"#74c7ec"
|
||||
"#f5e0dc"
|
||||
"#cba6f7"
|
||||
"#fab387"
|
||||
"#94e2d5"
|
||||
"#89b4fa"
|
||||
"#f2cdcd"
|
||||
"#f38ba8"
|
||||
"#f9e2af"
|
||||
"#89dceb"
|
||||
"#b4befe"
|
||||
];
|
||||
markdown.parentheses_options = "containedin=markdownCode contained";
|
||||
nerdtree = 0;
|
||||
perl.syn_name_prefix = "perlBlockFoldRainbow";
|
||||
stylus.parentheses = [ "start=/{/ end=/}/ fold contains=@colorableGroup" ];
|
||||
tex.parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\\begin/ end=/\\end/ fold"
|
||||
];
|
||||
vim.parentheses_options = "containedin=vimFuncBody";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -3,44 +3,27 @@
|
||||
{
|
||||
home.packages = with pkgs; [ python312Packages.pylatexenc ];
|
||||
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
programs.nixvim.plugins = {
|
||||
render-markdown = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" ];
|
||||
|
||||
settings = {
|
||||
ft = [ "markdown" ];
|
||||
latex.enabled = false;
|
||||
completions.lsp.enabled = true;
|
||||
|
||||
code = {
|
||||
width = "block";
|
||||
min_width = 45;
|
||||
left_pad = 2;
|
||||
language_pad = 2;
|
||||
};
|
||||
|
||||
heading.icons = [ " " " " " " " " " " " " ];
|
||||
};
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>m";
|
||||
group = "Markdown";
|
||||
icon = " ";
|
||||
}
|
||||
ft = [
|
||||
"markdown"
|
||||
"quarto"
|
||||
];
|
||||
latex = {
|
||||
enabled = false;
|
||||
};
|
||||
completions = {
|
||||
lsp = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>RenderMarkdown toggle<CR>";
|
||||
key = "<leader>ms";
|
||||
mode = "n";
|
||||
options.desc = "Toggle markdown preview";
|
||||
}
|
||||
];
|
||||
web-devicons = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraPackages = with pkgs; [ rust-analyzer ];
|
||||
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
lazyload.settings.filetype = [ "rs" ];
|
||||
};
|
||||
|
||||
files."ftplugin/rust.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action.__raw = ''
|
||||
function()
|
||||
vim.cmd.RustAnalyzer('codeAction')
|
||||
end
|
||||
'';
|
||||
key = "<leader>a";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Code action";
|
||||
silent = true;
|
||||
buffer.__raw = "vim.api.nvim_get_current_buf()";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = ''
|
||||
function()
|
||||
vim.cmd.RustAnalyzer({'hover', 'actions'})
|
||||
end
|
||||
'';
|
||||
key = "K";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
silent = true;
|
||||
buffer.__raw = "vim.api.nvim_get_current_buf()";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
programs.nixvim.plugins = {
|
||||
smart-splits = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
programs.nixvim.keymaps = [
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_left";
|
||||
key = "<C-S-p>h";
|
||||
@@ -104,5 +101,4 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
{ ... }:
|
||||
{...}:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
luasnip = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
fromVscode = [ { } ];
|
||||
};
|
||||
|
||||
friendly-snippets = {
|
||||
enable = true;
|
||||
lazyLoad.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.sniprun = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
sniprun = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
display = [ "VirtualLine" ];
|
||||
snipruncolors = {
|
||||
@@ -14,7 +14,6 @@
|
||||
ctermbg = "Cyan";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
|
||||
SniprunVirtualTextErr = {
|
||||
bg = "#ee99a0";
|
||||
fg = "#000000";
|
||||
@@ -24,4 +23,6 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.startup = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
startup = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
theme = "dashboard";
|
||||
sections = {
|
||||
@@ -27,9 +27,9 @@
|
||||
"<leader>of"
|
||||
]
|
||||
[
|
||||
" Yazi"
|
||||
" File Browser"
|
||||
"Telescope file_browser"
|
||||
"<leader>yf"
|
||||
"<leader>fb"
|
||||
]
|
||||
[
|
||||
" Colorschemes"
|
||||
@@ -42,7 +42,6 @@
|
||||
"<leader>nf"
|
||||
]
|
||||
];
|
||||
|
||||
defaultColor = "";
|
||||
foldSection = true;
|
||||
highlight = "String";
|
||||
@@ -51,7 +50,6 @@
|
||||
title = "Basic Commands";
|
||||
type = "mapping";
|
||||
};
|
||||
|
||||
header = {
|
||||
align = "center";
|
||||
content = {
|
||||
@@ -68,4 +66,6 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.nvim-surround = {
|
||||
programs.nixvim.plugins = {
|
||||
nvim-surround = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
luaConfig.post = ''
|
||||
luaConfig.post = # lua
|
||||
''
|
||||
local M = {}
|
||||
|
||||
M.get_input = function(prompt)
|
||||
@@ -37,7 +37,6 @@
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
[")"] = {
|
||||
add = { "(", ")" },
|
||||
find = function()
|
||||
@@ -45,7 +44,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["{"] = {
|
||||
add = { "{ ", " }" },
|
||||
find = function()
|
||||
@@ -53,7 +51,6 @@
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
["}"] = {
|
||||
add = { "{", "}" },
|
||||
find = function()
|
||||
@@ -61,7 +58,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["<"] = {
|
||||
add = { "< ", " >" },
|
||||
find = function()
|
||||
@@ -69,7 +65,6 @@
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
[">"] = {
|
||||
add = { "<", ">" },
|
||||
find = function()
|
||||
@@ -77,7 +72,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["["] = {
|
||||
add = { "[ ", " ]" },
|
||||
find = function()
|
||||
@@ -85,7 +79,6 @@
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
["]"] = {
|
||||
add = { "[", "]" },
|
||||
find = function()
|
||||
@@ -93,7 +86,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["'"] = {
|
||||
add = { "'", "'" },
|
||||
find = function()
|
||||
@@ -101,7 +93,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
['"'] = {
|
||||
add = { '"', '"' },
|
||||
find = function()
|
||||
@@ -109,7 +100,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["`"] = {
|
||||
add = { "`", "`" },
|
||||
find = function()
|
||||
@@ -117,7 +107,6 @@
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["i"] = {
|
||||
add = function()
|
||||
local left_delimiter = M.get_input("Enter the left delimiter: ")
|
||||
@@ -131,8 +120,8 @@
|
||||
},
|
||||
}
|
||||
'';
|
||||
|
||||
settings.aliases = {
|
||||
settings = {
|
||||
aliases = {
|
||||
"a" = ">";
|
||||
"b" = ")";
|
||||
"B" = "}";
|
||||
@@ -153,7 +142,6 @@
|
||||
"`"
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
insert = "<C-g>s";
|
||||
insert_line = "<C-g>S";
|
||||
@@ -169,4 +157,6 @@
|
||||
change_line = "cS";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
49
home/programs/nixvim/plugins/telescope.nix
Normal file
49
home/programs/nixvim/plugins/telescope.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
fd
|
||||
];
|
||||
programs.nixvim.plugins = {
|
||||
telescope = {
|
||||
enable = true;
|
||||
extensions = {
|
||||
fzf-native.enable = true;
|
||||
ui-select.enable = true;
|
||||
undo.enable = true;
|
||||
file-browser = {
|
||||
enable = true;
|
||||
settings = {
|
||||
hijack_netrw = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = {
|
||||
"<leader>ff" = {
|
||||
action = "find_files";
|
||||
options.desc = "List Files";
|
||||
};
|
||||
"<leader>fb" = {
|
||||
action = "file_browser path=%:p:h select_buffer=true";
|
||||
options.desc = "File Browser";
|
||||
};
|
||||
"<leader>fs" = {
|
||||
action = "buffers";
|
||||
options.desc = "List Open Buffers";
|
||||
};
|
||||
"<leader>fu" = {
|
||||
action = "undo";
|
||||
options.desc = "Undo Tree";
|
||||
};
|
||||
};
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>f";
|
||||
group = "Telescope";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
30
home/programs/nixvim/plugins/texpresso.nix
Normal file
30
home/programs/nixvim/plugins/texpresso.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ ... }:
|
||||
|
||||
# TODO: Make filetype keybindings work
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
texpresso = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
files = {
|
||||
"ftplugin/latex.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>Texpresso %<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Start Texpresso";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,47 +4,38 @@
|
||||
programs.nixvim.plugins = {
|
||||
todo-comments = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
highlight = {
|
||||
comments_only = false;
|
||||
};
|
||||
|
||||
colors = {
|
||||
default = [
|
||||
"Identifier"
|
||||
"#7C3AED"
|
||||
];
|
||||
|
||||
error = [
|
||||
"DiagnosticError"
|
||||
"ErrorMsg"
|
||||
"#DC2626"
|
||||
];
|
||||
|
||||
hint = [
|
||||
"DiagnosticHint"
|
||||
"#10B981"
|
||||
];
|
||||
|
||||
info = [
|
||||
"DiagnosticInfo"
|
||||
"#2563EB"
|
||||
];
|
||||
|
||||
test = [
|
||||
"Identifier"
|
||||
"#FF00FF"
|
||||
];
|
||||
|
||||
warning = [
|
||||
"DiagnosticWarn"
|
||||
"WarningMsg"
|
||||
"#FBBF24"
|
||||
];
|
||||
};
|
||||
|
||||
keywords = {
|
||||
FIX = {
|
||||
alt = [
|
||||
@@ -56,12 +47,10 @@
|
||||
color = "error";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
HACK = {
|
||||
color = "warning";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
NOTE = {
|
||||
alt = [
|
||||
"INFO"
|
||||
@@ -69,7 +58,6 @@
|
||||
color = "hint";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
PERF = {
|
||||
alt = [
|
||||
"OPTIM"
|
||||
@@ -78,7 +66,6 @@
|
||||
];
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
TEST = {
|
||||
alt = [
|
||||
"TESTING"
|
||||
@@ -88,12 +75,10 @@
|
||||
color = "test";
|
||||
icon = "⏲ ";
|
||||
};
|
||||
|
||||
TODO = {
|
||||
color = "info";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
WARN = {
|
||||
alt = [
|
||||
"WARNING"
|
||||
|
||||
@@ -5,46 +5,38 @@
|
||||
plugins = {
|
||||
toggleterm = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = [
|
||||
"ToggleTermSendCurrentLine"
|
||||
"ToggleTermSendVisualLines"
|
||||
"ToggleTermSendVisualSelection"
|
||||
];
|
||||
|
||||
settings = {
|
||||
open_mapping.__raw = "[[<c-,>]]";
|
||||
insert_mappings = true;
|
||||
shade_terminals = false;
|
||||
};
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>s";
|
||||
group = "Terminal";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>ToggleTermSendCurrentLine<CR>";
|
||||
key = "<leader>sl";
|
||||
key = "<leader>sts";
|
||||
mode = "n";
|
||||
options.desc = "Send Current Line";
|
||||
options = {
|
||||
desc = "Send Current Line";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>ToggleTermSendVisualLines<CR>";
|
||||
key = "<leader>sv";
|
||||
key = "<leader>stv";
|
||||
mode = "x";
|
||||
options.desc = "Send all the (whole) lines in selection";
|
||||
options = {
|
||||
desc = "Send all the (whole) lines in selection";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>ToggleTermSendVisualSelection<CR>";
|
||||
key = "<leader>ss";
|
||||
key = "<leader>sts";
|
||||
mode = "x";
|
||||
options.desc = "Send selection";
|
||||
options = {
|
||||
desc = "Send selection";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
programs.nixvim.plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
folding.enable = false;
|
||||
settings = {
|
||||
auto_install = false;
|
||||
@@ -15,7 +13,6 @@
|
||||
|
||||
ts-context-commentstring = {
|
||||
enable = true;
|
||||
lazyLoad.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
plugins = {
|
||||
trouble = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = "Trouble";
|
||||
|
||||
settings = {
|
||||
modes = {
|
||||
diagnostics = {
|
||||
@@ -16,7 +14,9 @@
|
||||
# Diagnostics for the current buffer only
|
||||
diagnostics_buffer = {
|
||||
mode = "diagnostics";
|
||||
filter.buf = 0;
|
||||
filter = {
|
||||
buf = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
focus = false;
|
||||
|
||||
@@ -2,19 +2,23 @@
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.typst-preview = {
|
||||
plugins = {
|
||||
typst-preview = {
|
||||
enable = true;
|
||||
lazyLoad = {
|
||||
settings = {
|
||||
ft = [ "typst" ];
|
||||
ft = "typst";
|
||||
cmd = "TypstPreview";
|
||||
};
|
||||
};
|
||||
|
||||
settings.open_command = "qutebrowser --target tab %s";
|
||||
settings = {
|
||||
open_command = "qutebrowser --target tab %s";
|
||||
};
|
||||
|
||||
files."ftplugin/typst.lua".keymaps = [
|
||||
};
|
||||
};
|
||||
files = {
|
||||
"ftplugin/typst.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>TypstPreview<CR>";
|
||||
key = "<C-k>t";
|
||||
@@ -23,8 +27,12 @@
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Typst Preview";
|
||||
options = {
|
||||
desc = "Typst Preview";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
{ ... }:
|
||||
|
||||
# TODO: conceal does not work
|
||||
# TODO: coneal does not work
|
||||
{
|
||||
programs.nixvim.plugins.typst-vim = {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
typst-vim = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "typst" ];
|
||||
|
||||
settings = {
|
||||
conceal = 1;
|
||||
conceal_math = 1;
|
||||
conceal_emoji = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,38 +5,7 @@
|
||||
plugins = {
|
||||
undotree = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = "UndotreeShow";
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>t";
|
||||
group = "Undotree";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>th";
|
||||
action = "<cmd>UndotreeHide<cr>";
|
||||
options.desc = "Hide undotree";
|
||||
}
|
||||
{
|
||||
key = "<leader>tf";
|
||||
action = "<cmd>UndotreeFocus<cr>";
|
||||
options.desc = "Focus undotree";
|
||||
}
|
||||
{
|
||||
key = "<leader>tp";
|
||||
action = "<cmd>UndotreePersistUndo<cr>";
|
||||
options.desc = "Persist undo";
|
||||
}
|
||||
{
|
||||
key = "<leader>ts";
|
||||
action = "<cmd>UndotreeShow<cr>";
|
||||
options.desc = "Show undotree";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
unified = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = "Unified";
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>u";
|
||||
group = "Unified";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>us";
|
||||
action = "<cmd>Unified<cr>";
|
||||
options.desc = "Start Unified";
|
||||
}
|
||||
{
|
||||
key = "<leader>uq";
|
||||
action = "<cmd>Unified reset<cr><cmd>Unified reset<cr>";
|
||||
options.desc = "Stop Unified";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,44 +1,17 @@
|
||||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraPackages = with pkgs; [
|
||||
texlive.combined.scheme-full
|
||||
# papis-nvim
|
||||
];
|
||||
|
||||
plugins = {
|
||||
vimtex = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetype = [ "tex" ];
|
||||
|
||||
texlivePackage = pkgs.texlive.combined.scheme-full;
|
||||
settings = {
|
||||
view_automatic = false;
|
||||
mappings_disable = {
|
||||
"n" = [ "K" ];
|
||||
};
|
||||
view_method = "zathura";
|
||||
};
|
||||
};
|
||||
|
||||
ltex-extra = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetype = [ "tex" ];
|
||||
};
|
||||
|
||||
texpresso = {
|
||||
enable = true;
|
||||
lazyload.settings.filetype = [ "tex" ];
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>v";
|
||||
group = "Vimtex";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
autoGroups = {
|
||||
@@ -63,36 +36,5 @@
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>vc";
|
||||
action = "<cmd>VimtexCompile<cr>";
|
||||
options.desc = "Start Vimtex";
|
||||
}
|
||||
{
|
||||
key = "<leader>vs";
|
||||
action = "<cmd>VimtexStop<cr>";
|
||||
options.desc = "Stop Vimtex";
|
||||
}
|
||||
{
|
||||
key = "<leader>vr";
|
||||
action = "<cmd>VimtexClean<cr>";
|
||||
options.desc = "Clean Vimtex";
|
||||
}
|
||||
];
|
||||
|
||||
files."ftplugin/latex.lua".keymaps = [
|
||||
{
|
||||
action = "<CMD>Texpresso %<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Start Texpresso";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.web-devicons = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
web-devicons.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.which-key = {
|
||||
programs.nixvim.plugins = {
|
||||
which-key = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.wilder = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.modes = [
|
||||
":"
|
||||
"/"
|
||||
"?"
|
||||
];
|
||||
|
||||
# Configure the wilder engine
|
||||
options = {
|
||||
pipeline.__raw = ''
|
||||
wilder.branch(
|
||||
wilder.cmdline_pipeline({
|
||||
fuzzy = 1,
|
||||
set_device = 1,
|
||||
}),
|
||||
wilder.vim_search_pipeline()
|
||||
)
|
||||
'';
|
||||
renderer.__raw = ''
|
||||
wilder.popupmenu_renderer(
|
||||
wilder.popupmenu_border_theme({
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
highlights = {
|
||||
accent = "WilderAccent",
|
||||
},
|
||||
border = "rounded",
|
||||
left = { " ", wilder.popupmenu_devicons() },
|
||||
right = { " ", wilder.popupmenu_scrollbar() },
|
||||
})
|
||||
)
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Define the custom highlight group for the accent color
|
||||
programs.nixvim.highlight = {
|
||||
WilderAccent = {
|
||||
fg = "#f5c2e7";
|
||||
bold = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
69
home/programs/nixvim/plugins/yanky.nix
Normal file
69
home/programs/nixvim/plugins/yanky.nix
Normal file
@@ -0,0 +1,69 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
yanky = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ring = {
|
||||
storage = "sqlite";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sqlite-lua = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "p";
|
||||
action = "<Plug>(YankyPutAfter)";
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "P";
|
||||
action = "<Plug>(YankyPutBefore)";
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "gp";
|
||||
action = "<Plug>(YankyGPutAfter)";
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "gP";
|
||||
action = "<Plug>(YankyGPutBefore)";
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "<c-p>";
|
||||
action = "<Plug>(YankyPreviousEntry)";
|
||||
mode = [
|
||||
"n"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "<c-n>";
|
||||
action = "<Plug>(YankyNextEntry)";
|
||||
mode = [
|
||||
"n"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
yazi = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>y";
|
||||
group = "Yazi";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>yf";
|
||||
action = "<cmd>Yazi<cr>";
|
||||
options.desc = "Open yazi at the current file";
|
||||
}
|
||||
{
|
||||
key = "<leader>yw";
|
||||
action = "<cmd>Yazi cwd<cr>";
|
||||
options.desc = "Open yazi at the current working directory";
|
||||
}
|
||||
{
|
||||
key = "<leader>yl";
|
||||
action = "<cmd>Yazi toggle<cr>";
|
||||
options.desc = "Resume the last session";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.yuck = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "yuck" ];
|
||||
};
|
||||
}
|
||||
95
home/programs/nixvim/plugins/zk.nix
Normal file
95
home/programs/nixvim/plugins/zk.nix
Normal file
@@ -0,0 +1,95 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
zk = {
|
||||
enable = true;
|
||||
settings = {
|
||||
picker = "telescope";
|
||||
};
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>z";
|
||||
group = "Zettelkasten";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>zn";
|
||||
action = "<Cmd>ZkNew { title = vim.fn.input('Title: ') }<CR>";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Create";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>zo";
|
||||
action = "<Cmd>ZkNotes { sort = { 'modified' } }<CR>";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Open";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>zt";
|
||||
action = "<Cmd>ZkTags<CR>";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Open Tags";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>zf";
|
||||
action = "<Cmd>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }<CR>";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Search";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>zf";
|
||||
action = ":'<,'>ZkMatch<CR>";
|
||||
mode = [ "v" ];
|
||||
options = {
|
||||
desc = "Search (Matching the Selection)";
|
||||
};
|
||||
}
|
||||
];
|
||||
files = {
|
||||
# TODO: Add descriptions
|
||||
# TODO: Did the sytnax change?
|
||||
"ftplugin/markdown.lua" = {
|
||||
extraConfigLua = # lua
|
||||
''
|
||||
-- Add the key mappings only for Markdown files in a zk notebook.
|
||||
if require("zk.util").notebook_root(vim.fn.expand('%:p')) ~= nil then
|
||||
local function map(...) vim.api.nvim_buf_set_keymap(0, ...) end
|
||||
local opts = { noremap=true, silent=false }
|
||||
|
||||
-- Create a new note after asking for its title.
|
||||
-- This overrides the global `<leader>zn` mapping to create the note in the same directory as the current buffer.
|
||||
map("n", "<leader>zn", "<Cmd>ZkNew { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts)
|
||||
-- Create a new note in the same directory as the current buffer, using the current selection for title.
|
||||
map("v", "<leader>znt", ":'<,'>ZkNewFromTitleSelection { dir = vim.fn.expand('%:p:h') }<CR>", opts)
|
||||
-- Create a new note in the same directory as the current buffer, using the current selection for note content and asking for its title.
|
||||
map("v", "<leader>znc", ":'<,'>ZkNewFromContentSelection { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts)
|
||||
|
||||
-- Open notes linking to the current buffer.
|
||||
map("n", "<leader>zb", "<Cmd>ZkBacklinks<CR>", opts)
|
||||
-- Open notes linked by the current buffer.
|
||||
map("n", "<leader>zl", "<Cmd>ZkLinks<CR>", opts)
|
||||
|
||||
-- Preview a linked note.
|
||||
map("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
||||
-- Open the code actions for a visual selection.
|
||||
map("v", "<leader>za", ":'<,'>lua vim.lsp.buf.range_code_action()<CR>", opts)
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -119,7 +119,7 @@
|
||||
# Powerbutton
|
||||
"None XF86PowerOff" = "spawn '/home/$USER/.config/eww/scripts/powermenu.sh'";
|
||||
# Program
|
||||
"Super C" = "spawn 'zen'";
|
||||
"Super C" = "spawn 'firefox'";
|
||||
"Super Y" = "spawn 'signal-desktop'";
|
||||
"Super X" = "spawn 'Telegram'";
|
||||
"Super V" = "spawn 'thunderbird'";
|
||||
|
||||
0
home/programs/taskwarrior/hooks/on-add.sh
Normal file → Executable file
0
home/programs/taskwarrior/hooks/on-add.sh
Normal file → Executable file
@@ -54,6 +54,13 @@
|
||||
tls.enable = true;
|
||||
};
|
||||
realName = "Elias Schröter";
|
||||
signature = {
|
||||
text = ''
|
||||
Mit freundlichen Grüßen,
|
||||
Elias Schröter.
|
||||
'';
|
||||
showSignature = "append";
|
||||
};
|
||||
passwordCommand = "mail-password";
|
||||
smtp = {
|
||||
host = "postout.lrz.de";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.vscodium = {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
profiles.default = {
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
extension = shortId: guid: {
|
||||
name = guid;
|
||||
value = {
|
||||
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
|
||||
installation_mode = "normal_installed";
|
||||
};
|
||||
};
|
||||
|
||||
prefs = {
|
||||
# Check these out at about:config
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
"extensions.pocket.enabled" = false;
|
||||
# ...
|
||||
};
|
||||
|
||||
extensions = [
|
||||
# To add additional extensions, find it on addons.mozilla.org, find
|
||||
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
|
||||
# Then go to https://addons.mozilla.org/api/v5/addons/addon/!SHORT_ID!/ to get the guid
|
||||
(extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||
# ...
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.wrapFirefox
|
||||
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped
|
||||
{
|
||||
extraPrefs = lib.concatLines (
|
||||
lib.mapAttrsToList (
|
||||
name: value: "lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});"
|
||||
) prefs
|
||||
);
|
||||
|
||||
extraPolicies = {
|
||||
DisableTelemetry = true;
|
||||
ExtensionSettings = builtins.listToAttrs extensions;
|
||||
|
||||
SearchEngines = {
|
||||
Default = "ecosia";
|
||||
Add = [
|
||||
{
|
||||
Name = "nixpkgs packages";
|
||||
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
|
||||
IconURL = "https://wiki.nixos.org/favicon.ico";
|
||||
Alias = "@np";
|
||||
}
|
||||
{
|
||||
Name = "NixOS options";
|
||||
URLTemplate = "https://search.nixos.org/options?query={searchTerms}";
|
||||
IconURL = "https://wiki.nixos.org/favicon.ico";
|
||||
Alias = "@no";
|
||||
}
|
||||
{
|
||||
Name = "NixOS Wiki";
|
||||
URLTemplate = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
||||
IconURL = "https://wiki.nixos.org/favicon.ico";
|
||||
Alias = "@nw";
|
||||
}
|
||||
{
|
||||
Name = "noogle";
|
||||
URLTemplate = "https://noogle.dev/q?term={searchTerms}";
|
||||
IconURL = "https://noogle.dev/favicon.ico";
|
||||
Alias = "@ng";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
43
home/programs/zk.nix
Normal file
43
home/programs/zk.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.zk = {
|
||||
enable = true;
|
||||
settings = {
|
||||
note.template = "default.md";
|
||||
format.markdow = {
|
||||
hashtags = true;
|
||||
colon-tags = false;
|
||||
multiword-tags = false;
|
||||
};
|
||||
tool.fzf-preview = "bat -p --color always {-1}";
|
||||
notebook = {
|
||||
dir = "~/Nextcloud/zettelkasten";
|
||||
};
|
||||
alias = {
|
||||
n = "zk new inbox/$@";
|
||||
i = "zk edit -x inbox,journals -i";
|
||||
ls = "zk list -x inbox,journals $@";
|
||||
ed = "zk edit -x inbox,journals $@";
|
||||
rm = ''zk list --interactive --quiet --format "{{abs-path}}" --delimiter0 $@ | xargs -0 rm -vf --'';
|
||||
recent = "zk edit --sort created- --created-after 'last two weeks' --interactive";
|
||||
inbox = "zk edit -t inbox --interactive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
"/Nextcloud/zettelkasten/.zk/templates/default.md" = {
|
||||
text = ''
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{format-date now "long"}}
|
||||
tags: [inbox]
|
||||
---
|
||||
# {{ title }}
|
||||
|
||||
{{ content }}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home.packages = with pkgs; [ zoom-us ];
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
dotDir = "${config.xdg.configHome}/zsh";
|
||||
shellAliases = {
|
||||
update = "sudo nixos-rebuild switch";
|
||||
bambo-studio = "flatpak run com.bambulab.BambuStudio";
|
||||
};
|
||||
autosuggestion.enable = true;
|
||||
localVariables = {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./emanote.nix
|
||||
./flameshot.nix
|
||||
./fnott.nix
|
||||
./gpg-agent.nix
|
||||
|
||||
23
home/services/emanote.nix
Normal file
23
home/services/emanote.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
emanote = import (
|
||||
builtins.fetchTarball {
|
||||
url = "https://github.com/srid/emanote/archive/master.tar.gz";
|
||||
sha256 = "0kr8bbq1awg2c2ra1mwjxqa9m7is9b6cdksvh48g4w354h5pqbnv";
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
imports = [ emanote.homeManagerModule ];
|
||||
services.emanote = {
|
||||
enable = true;
|
||||
# host = "127.0.0.1"; # default listen address is 127.0.0.1
|
||||
# port = 7000; # default http port is 7000
|
||||
notes = [
|
||||
"/home/elias/Nextcloud/zettelkasten"
|
||||
];
|
||||
# TODO: currentSystem
|
||||
package = emanote.packages."x86_64-linux".default;
|
||||
};
|
||||
}
|
||||
@@ -52,7 +52,7 @@ in
|
||||
enableNushellIntegration = true;
|
||||
defaultCacheTtl = 60;
|
||||
maxCacheTtl = 120;
|
||||
# enableSshSupport = true;
|
||||
enableSshSupport = true;
|
||||
sshKeys = [ "8E42E6C65D5F9894CFFF294851AB0CEB5F0B1FAA" ];
|
||||
pinentry.package = pkgs.pinentry-gnome3;
|
||||
# under extraConfig
|
||||
|
||||
Reference in New Issue
Block a user