From cff69c8f5d92960689711b8664a4932c875d78ef Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Fri, 26 Jul 2024 08:00:26 -0400 Subject: [PATCH] zed keymaps, and updates --- nix/home-manager/flake.lock | 24 ++++++++++++------------ nix/home-manager/modules/files.nix | 1 + zed/keymap.json | 6 ++++++ zed/settings.json | 3 +++ 4 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 zed/keymap.json diff --git a/nix/home-manager/flake.lock b/nix/home-manager/flake.lock index 12d81cc..4b37ba8 100644 --- a/nix/home-manager/flake.lock +++ b/nix/home-manager/flake.lock @@ -29,11 +29,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1721716180, - "narHash": "sha256-9s6WJOHUo/ChtV+1Kysf/BA0SIqmfl9SjJtkpiyRUWg=", + "lastModified": 1721802589, + "narHash": "sha256-JbSHTnOS0jRbsfMqEFnwkQXUkKO9/7aWqh/8+jqrWLs=", "owner": "nix-community", "repo": "fenix", - "rev": "8df0c074eac46e1f90e9e25c65ddbc2241717bb1", + "rev": "31cd6d83e0e3900f10053daf33bd878792946282", "type": "github" }, "original": { @@ -86,11 +86,11 @@ ] }, "locked": { - "lastModified": 1721714663, - "narHash": "sha256-ZDW5+rlROxaOuoEfIQM7Gqhoa+WALEYdYIiZhyJjAu0=", + "lastModified": 1721804110, + "narHash": "sha256-i4jINRazBKPqlaS+qhlP+kV/UHEq3vs5itfpblqu4ZM=", "owner": "nix-community", "repo": "home-manager", - "rev": "7560dc942a6fbd37ebd1310b3dbda513de2d4b82", + "rev": "af70fc502a15d7e1e4c5a4c4fc8e06c2ec561e0c", "type": "github" }, "original": { @@ -231,11 +231,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1721741063, - "narHash": "sha256-Ov/GqJxWazmdeJgKjBC1MYjsWGMNbTqjGaUeNQiUqNo=", + "lastModified": 1721844761, + "narHash": "sha256-Xg21MpAUiwO6mTorUkQDLqcXZfWmBwWjF3TQ+b2/Stk=", "owner": "nixOS", "repo": "nixpkgs", - "rev": "daa5739d1a339bff793ab4c722adb4cb49633087", + "rev": "4c28478d2fbe920fb1eb22541b4a5c5627c51a83", "type": "github" }, "original": { @@ -318,11 +318,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1721661365, - "narHash": "sha256-dHCsQcxaa3luWEXD+ehItZtWU2B10DXb7GWBF1Fy+I4=", + "lastModified": 1721756321, + "narHash": "sha256-M1ubop13c8TwMP6mMirSz+zj4FttJ/sTk5nV7pURsIg=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "329adb5ab18bbb6f9f4ff47c6426412fefc50618", + "rev": "eb5da56d839ae0a9e9f50774fa3eb78eb0964550", "type": "github" }, "original": { diff --git a/nix/home-manager/modules/files.nix b/nix/home-manager/modules/files.nix index 94ecfd6..dc91107 100644 --- a/nix/home-manager/modules/files.nix +++ b/nix/home-manager/modules/files.nix @@ -81,5 +81,6 @@ in { }; }; "zed/settings.json".source = ./${repo_root}/zed/settings.json; + "zed/keymap.json".source = ./${repo_root}/zed/keymap.json; }; } diff --git a/zed/keymap.json b/zed/keymap.json new file mode 100644 index 0000000..4c6b73f --- /dev/null +++ b/zed/keymap.json @@ -0,0 +1,6 @@ +[ + { + "context": "VimControl", + "bindings": { "space s": "pane::RevealInProjectPanel" } + } +] diff --git a/zed/settings.json b/zed/settings.json index 4b8fca0..3fd9d91 100644 --- a/zed/settings.json +++ b/zed/settings.json @@ -14,6 +14,9 @@ "assistant_v2": { "enabled": true }, + "tabs": { + "file_icons": true + }, "languages": { "Typescript": { "language_servers": ["!typescript-language-server", "vtsls"]