Compare commits
No commits in common. "e605be817acdb7b3a159ba3d15bdc656fd86f909" and "8bf123d3877f8fc1c6167024ba9fa4d89b91cd79" have entirely different histories.
e605be817a
...
8bf123d387
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
%-darwin:
|
%-darwin:
|
||||||
sudo darwin-rebuild --flake ./nix/base-system $*
|
darwin-rebuild --flake ./nix/base-system $*
|
||||||
|
|
||||||
update-input-%:
|
update-input-%:
|
||||||
nix flake lock --update-input $* ./nix/base-system/
|
nix flake lock --update-input $* ./nix/base-system/
|
||||||
|
@ -6,11 +6,10 @@ in
|
|||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
enable = true;
|
|
||||||
# SEE: https://github.com/NixOS/nix/issues/4119#issuecomment-1734738812
|
# SEE: https://github.com/NixOS/nix/issues/4119#issuecomment-1734738812
|
||||||
settings.sandbox = "relaxed";
|
settings.sandbox = "relaxed";
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes repl-flake
|
||||||
extra-platforms = x86_64-darwin aarch64-darwin x86_64-linux
|
extra-platforms = x86_64-darwin aarch64-darwin x86_64-linux
|
||||||
trusted-users = root zaphar
|
trusted-users = root zaphar
|
||||||
'';
|
'';
|
||||||
@ -348,6 +347,9 @@ in
|
|||||||
vfkit
|
vfkit
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Auto upgrade nix package and the daemon service.
|
||||||
|
services.nix-daemon.enable = true;
|
||||||
|
|
||||||
#services.spacebar.enable = true;
|
#services.spacebar.enable = true;
|
||||||
#services.spacebar.package = "${pkgs.spacebar}";
|
#services.spacebar.package = "${pkgs.spacebar}";
|
||||||
|
|
||||||
@ -363,7 +365,6 @@ in
|
|||||||
(allow file-read* file-write* process-exec mach-lookup (subpath "${builtins.storeDir}"))
|
(allow file-read* file-write* process-exec mach-lookup (subpath "${builtins.storeDir}"))
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
system.primaryUser = "zaphar";
|
|
||||||
# Used for backwards compatibility, please read the changelog before changing.
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system.stateVersion = 4;
|
system.stateVersion = 4;
|
||||||
|
203
nix/base-system/flake.lock
generated
203
nix/base-system/flake.lock
generated
@ -141,16 +141,15 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749744770,
|
"lastModified": 1715871485,
|
||||||
"narHash": "sha256-MEM9XXHgBF/Cyv1RES1t6gqAX7/tvayBC1r/KPyK1ls=",
|
"narHash": "sha256-ywapEXmBBI+DVRx/YYC6+6Lk+W8vhShz1uJNvqPKzng=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "536f951efb1ccda9b968e3c9dee39fbeb6d3fdeb",
|
"rev": "cb02884fa1ff5a619a44ab5f1bcc4dedd2d623c2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"ref": "nix-darwin-25.05",
|
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -298,6 +297,24 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_9"
|
"systems": "systems_9"
|
||||||
},
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710146030,
|
||||||
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_11": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_10"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1687709756,
|
"lastModified": 1687709756,
|
||||||
"narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=",
|
"narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=",
|
||||||
@ -312,7 +329,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_11": {
|
"flake-utils_12": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1649676176,
|
"lastModified": 1649676176,
|
||||||
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
|
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
|
||||||
@ -327,9 +344,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_12": {
|
"flake-utils_13": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_10"
|
"systems": "systems_11"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705309234,
|
"lastModified": 1705309234,
|
||||||
@ -345,9 +362,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_13": {
|
"flake-utils_14": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_11"
|
"systems": "systems_12"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726560853,
|
"lastModified": 1726560853,
|
||||||
@ -363,9 +380,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_14": {
|
"flake-utils_15": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_12"
|
"systems": "systems_13"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681202837,
|
"lastModified": 1681202837,
|
||||||
@ -562,6 +579,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"harpoon-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1706306053,
|
||||||
|
"narHash": "sha256-RjwNUuKQpLkRBX3F9o25Vqvpu3Ah1TCFQ5Dk4jXhsbI=",
|
||||||
|
"owner": "ThePrimeagen",
|
||||||
|
"repo": "harpoon",
|
||||||
|
"rev": "a38be6e0dd4c6db66997deab71fc4453ace97f9c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ThePrimeagen",
|
||||||
|
"ref": "harpoon2",
|
||||||
|
"repo": "harpoon",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"heracles-flake": {
|
"heracles-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_3",
|
||||||
@ -767,7 +801,7 @@
|
|||||||
},
|
},
|
||||||
"naersk_5": {
|
"naersk_5": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_15"
|
"nixpkgs": "nixpkgs_16"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1650101877,
|
"lastModified": 1650101877,
|
||||||
@ -785,7 +819,7 @@
|
|||||||
},
|
},
|
||||||
"naersk_6": {
|
"naersk_6": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_16"
|
"nixpkgs": "nixpkgs_17"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721727458,
|
"lastModified": 1721727458,
|
||||||
@ -833,6 +867,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"neovim-flake": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_10",
|
||||||
|
"nixpkgs": "nixpkgs_12"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"dir": "contrib",
|
||||||
|
"lastModified": 1715862872,
|
||||||
|
"narHash": "sha256-FCOipXHkAbkuFw9JjEpOIJ8BkyMkjkI0Dp+SzZ4yZlw=",
|
||||||
|
"owner": "neovim",
|
||||||
|
"repo": "neovim",
|
||||||
|
"rev": "27fb62988e922c2739035f477f93cc052a4fee1e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "contrib",
|
||||||
|
"owner": "neovim",
|
||||||
|
"ref": "stable",
|
||||||
|
"repo": "neovim",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nil-flake": {
|
"nil-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_5",
|
"flake-utils": "flake-utils_5",
|
||||||
@ -855,8 +911,8 @@
|
|||||||
},
|
},
|
||||||
"nil-flake_2": {
|
"nil-flake_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_10",
|
"flake-utils": "flake-utils_11",
|
||||||
"nixpkgs": "nixpkgs_12",
|
"nixpkgs": "nixpkgs_13",
|
||||||
"rust-overlay": "rust-overlay_6"
|
"rust-overlay": "rust-overlay_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -891,16 +947,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-darwin": {
|
"nixpkgs-darwin": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749596380,
|
"lastModified": 1735564410,
|
||||||
"narHash": "sha256-7DEKr2x/jIAKkwHPNNjG6lGUz9nk8SGrbyaeAFMtN34=",
|
"narHash": "sha256-HB/FA0+1gpSs8+/boEavrGJH+Eq08/R2wWNph1sM1Dg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "210a4a2e3d3853be3a6017e68d2897771fdace35",
|
"rev": "1e7a8f391f1a490460760065fa0630b5520f9cf8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixpkgs-25.05-darwin",
|
"ref": "nixpkgs-24.05-darwin",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -938,6 +994,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_12": {
|
"nixpkgs_12": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715787315,
|
||||||
|
"narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_13": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1690441914,
|
"lastModified": 1690441914,
|
||||||
"narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=",
|
"narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=",
|
||||||
@ -953,23 +1025,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_13": {
|
"nixpkgs_14": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749747690,
|
"lastModified": 1749123672,
|
||||||
"narHash": "sha256-FPhMfYq+ngKpZiYaOblqR6S9z9JVpTlW8EaQ98xwkkU=",
|
"narHash": "sha256-x8ElRL7SBDDGk282ayqaOs5kVlIB8O1cICeHNKeeNPw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f7d4856c2d1af130193777964535304fdc76e368",
|
"rev": "42e9ed325316e9ca4c56dbf44d561823d4defd01",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "release-25.05",
|
"ref": "release-24.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_14": {
|
"nixpkgs_15": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689850295,
|
"lastModified": 1689850295,
|
||||||
"narHash": "sha256-fUYf6WdQlhd2H+3aR8jST5dhFH1d0eE22aes8fNIfyk=",
|
"narHash": "sha256-fUYf6WdQlhd2H+3aR8jST5dhFH1d0eE22aes8fNIfyk=",
|
||||||
@ -985,7 +1057,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_15": {
|
"nixpkgs_16": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1650109093,
|
"lastModified": 1650109093,
|
||||||
"narHash": "sha256-tqlnKrAdJktRLXTou9le0oTqrYBAFpGscV5RADdpArU=",
|
"narHash": "sha256-tqlnKrAdJktRLXTou9le0oTqrYBAFpGscV5RADdpArU=",
|
||||||
@ -999,20 +1071,6 @@
|
|||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_16": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1729658218,
|
|
||||||
"narHash": "sha256-9Rg+AqLqvqqJniP/OQB3GtgXoAd8IlazsHp97va042Y=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "dfffb2e7a52d29a0ef8e21ec8a0f30487b227f1a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"id": "nixpkgs",
|
|
||||||
"type": "indirect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_17": {
|
"nixpkgs_17": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729658218,
|
"lastModified": 1729658218,
|
||||||
@ -1028,6 +1086,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_18": {
|
"nixpkgs_18": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1729658218,
|
||||||
|
"narHash": "sha256-9Rg+AqLqvqqJniP/OQB3GtgXoAd8IlazsHp97va042Y=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "dfffb2e7a52d29a0ef8e21ec8a0f30487b227f1a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_19": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1682109806,
|
"lastModified": 1682109806,
|
||||||
"narHash": "sha256-d9g7RKNShMLboTWwukM+RObDWWpHKaqTYXB48clBWXI=",
|
"narHash": "sha256-d9g7RKNShMLboTWwukM+RObDWWpHKaqTYXB48clBWXI=",
|
||||||
@ -1181,7 +1253,7 @@
|
|||||||
},
|
},
|
||||||
"nurl-flake_2": {
|
"nurl-flake_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_14"
|
"nixpkgs": "nixpkgs_15"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701273941,
|
"lastModified": 1701273941,
|
||||||
@ -1205,12 +1277,14 @@
|
|||||||
"d2-vim-src": "d2-vim-src_2",
|
"d2-vim-src": "d2-vim-src_2",
|
||||||
"darwin": "darwin_2",
|
"darwin": "darwin_2",
|
||||||
"durnitisp-flake": "durnitisp-flake",
|
"durnitisp-flake": "durnitisp-flake",
|
||||||
|
"harpoon-src": "harpoon-src",
|
||||||
"heracles-flake": "heracles-flake",
|
"heracles-flake": "heracles-flake",
|
||||||
"jujutsu-flake": "jujutsu-flake",
|
"jujutsu-flake": "jujutsu-flake",
|
||||||
"mcphub-flake": "mcphub-flake",
|
"mcphub-flake": "mcphub-flake",
|
||||||
"neogit-src": "neogit-src_2",
|
"neogit-src": "neogit-src_2",
|
||||||
|
"neovim-flake": "neovim-flake",
|
||||||
"nil-flake": "nil-flake_2",
|
"nil-flake": "nil-flake_2",
|
||||||
"nixpkgs": "nixpkgs_13",
|
"nixpkgs": "nixpkgs_14",
|
||||||
"nixpkgs-darwin": "nixpkgs-darwin",
|
"nixpkgs-darwin": "nixpkgs-darwin",
|
||||||
"nurl-flake": "nurl-flake_2",
|
"nurl-flake": "nurl-flake_2",
|
||||||
"roslyn-lsp": "roslyn-lsp_2",
|
"roslyn-lsp": "roslyn-lsp_2",
|
||||||
@ -1218,6 +1292,7 @@
|
|||||||
"rust-overlay-flake": "rust-overlay-flake",
|
"rust-overlay-flake": "rust-overlay-flake",
|
||||||
"sheetsui-flake": "sheetsui-flake",
|
"sheetsui-flake": "sheetsui-flake",
|
||||||
"sile-flake": "sile-flake",
|
"sile-flake": "sile-flake",
|
||||||
|
"treesitter-context": "treesitter-context_2",
|
||||||
"unstable": "unstable"
|
"unstable": "unstable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1258,7 +1333,7 @@
|
|||||||
"runwhen-flake": {
|
"runwhen-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_4",
|
"flake-compat": "flake-compat_4",
|
||||||
"flake-utils": "flake-utils_11",
|
"flake-utils": "flake-utils_12",
|
||||||
"naersk": "naersk_5"
|
"naersk": "naersk_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -1300,7 +1375,7 @@
|
|||||||
},
|
},
|
||||||
"rust-overlay-flake": {
|
"rust-overlay-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_12",
|
"flake-utils": "flake-utils_13",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
@ -1455,9 +1530,9 @@
|
|||||||
},
|
},
|
||||||
"sheetsui-flake": {
|
"sheetsui-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_13",
|
"flake-utils": "flake-utils_14",
|
||||||
"naersk": "naersk_6",
|
"naersk": "naersk_6",
|
||||||
"nixpkgs": "nixpkgs_17",
|
"nixpkgs": "nixpkgs_18",
|
||||||
"rust-overlay": "rust-overlay_7"
|
"rust-overlay": "rust-overlay_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -1477,10 +1552,10 @@
|
|||||||
"sile-flake": {
|
"sile-flake": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_5",
|
"flake-compat": "flake-compat_5",
|
||||||
"flake-utils": "flake-utils_14",
|
"flake-utils": "flake-utils_15",
|
||||||
"gitignore": "gitignore",
|
"gitignore": "gitignore",
|
||||||
"libtexpdf-src": "libtexpdf-src",
|
"libtexpdf-src": "libtexpdf-src",
|
||||||
"nixpkgs": "nixpkgs_18"
|
"nixpkgs": "nixpkgs_19"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694595810,
|
"lastModified": 1694595810,
|
||||||
@ -1556,6 +1631,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_13": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems_2": {
|
"systems_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@ -1709,6 +1799,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"treesitter-context_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1693236978,
|
||||||
|
"narHash": "sha256-B6BXeFEWxTFf46JrlatsxEQcC6+/hPIDBb5cIcJpLZg=",
|
||||||
|
"owner": "nvim-treesitter",
|
||||||
|
"repo": "nvim-treesitter-context",
|
||||||
|
"rev": "e6b743ccd4e780bc9cd85b707de67df72eea1a23",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nvim-treesitter",
|
||||||
|
"repo": "nvim-treesitter-context",
|
||||||
|
"rev": "e6b743ccd4e780bc9cd85b707de67df72eea1a23",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747312588,
|
"lastModified": 1747312588,
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
# Default to sane nixpkgs versions
|
# Default to sane nixpkgs versions
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/release-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
|
||||||
unstable.url = "nixpkgs";
|
unstable.url = "nixpkgs";
|
||||||
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-25.05-darwin";
|
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
|
||||||
#lean4-flake = {
|
#lean4-flake = {
|
||||||
# url = "github:leanprover/lean4/v4.4.0";
|
# url = "github:leanprover/lean4/v4.4.0";
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
#};
|
#};
|
||||||
darwin = {
|
darwin = {
|
||||||
url = "github:lnl7/nix-darwin/nix-darwin-25.05";
|
url = "github:lnl7/nix-darwin";
|
||||||
# ensure that darwinSystem uses our nixpkgs version
|
# ensure that darwinSystem uses our nixpkgs version
|
||||||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||||
};
|
};
|
||||||
@ -31,16 +31,20 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
#neovim-flake = {
|
neovim-flake = {
|
||||||
# url = "github:neovim/neovim/stable?dir=contrib";
|
url = "github:neovim/neovim/stable?dir=contrib";
|
||||||
# # NOTE(jeremy): Currently this needs a newer nixpkgs version
|
# NOTE(jeremy): Currently this needs a newer nixpkgs version
|
||||||
# #inputs.nixpkgs.follows = "nixpkgs";
|
#inputs.nixpkgs.follows = "nixpkgs";
|
||||||
#};
|
};
|
||||||
jujutsu-flake.url = "github:martinvonz/jj";
|
jujutsu-flake.url = "github:martinvonz/jj";
|
||||||
custom-flakes = {
|
custom-flakes = {
|
||||||
url = "github:zaphar/nix-flakes";
|
url = "github:zaphar/nix-flakes";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
harpoon-src = {
|
||||||
|
url = "github:ThePrimeagen/harpoon/harpoon2";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
neogit-src = {
|
neogit-src = {
|
||||||
url = "github:NeogitOrg/neogit";
|
url = "github:NeogitOrg/neogit";
|
||||||
flake = false;
|
flake = false;
|
||||||
@ -50,6 +54,10 @@
|
|||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
# We need to pin to this version of treesitter because it breaks after this revision
|
# We need to pin to this version of treesitter because it breaks after this revision
|
||||||
|
treesitter-context = {
|
||||||
|
url = "github:nvim-treesitter/nvim-treesitter-context/e6b743ccd4e780bc9cd85b707de67df72eea1a23";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
roslyn-lsp = {
|
roslyn-lsp = {
|
||||||
url = "github:zaphar/roslyn.nvim/main";
|
url = "github:zaphar/roslyn.nvim/main";
|
||||||
flake = false;
|
flake = false;
|
||||||
@ -68,9 +76,11 @@
|
|||||||
agenix-flake,
|
agenix-flake,
|
||||||
nil-flake,
|
nil-flake,
|
||||||
nurl-flake,
|
nurl-flake,
|
||||||
|
harpoon-src,
|
||||||
custom-flakes,
|
custom-flakes,
|
||||||
unstable,
|
unstable,
|
||||||
heracles-flake,
|
heracles-flake,
|
||||||
|
neovim-flake,
|
||||||
clio-flake,
|
clio-flake,
|
||||||
sheetsui-flake,
|
sheetsui-flake,
|
||||||
mcphub-flake,
|
mcphub-flake,
|
||||||
@ -83,13 +93,24 @@
|
|||||||
in
|
in
|
||||||
{ config, pkgs, ...}: let
|
{ config, pkgs, ...}: let
|
||||||
unstablePkgs = import unstable { inherit system; };
|
unstablePkgs = import unstable { inherit system; };
|
||||||
|
possession-nvim = pkgs.callPackage ./possession-nvim.nix {
|
||||||
|
inherit (pkgs.vimUtils) buildVimPlugin;
|
||||||
|
inherit (pkgs) fetchFromGitHub;
|
||||||
|
};
|
||||||
|
harpoon-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
pname = "harpoon";
|
||||||
|
version = "2024-01-28";
|
||||||
|
src = harpoon-src;
|
||||||
|
};
|
||||||
neogit-nvim = custom-flakes.packages."${system}".neogit-nvim;
|
neogit-nvim = custom-flakes.packages."${system}".neogit-nvim;
|
||||||
d2-vim = custom-flakes.packages."${system}".d2-vim;
|
d2-vim = custom-flakes.packages."${system}".d2-vim;
|
||||||
hunk-nvim = custom-flakes.packages."${system}".hunk-nvim;
|
hunk-nvim = custom-flakes.packages."${system}".hunk-nvim;
|
||||||
# TODO(zaphar): Apparently this is a remote plugin so it needs some additional love.
|
# TODO(zaphar): Apparently this is a remote plugin so it needs some additional love.
|
||||||
#nvim-bnf = custom-flakes.packages."${system}".nvim-bnf;
|
#nvim-bnf = custom-flakes.packages."${system}".nvim-bnf;
|
||||||
|
nvim-treesitter-context = custom-flakes.packages."${system}".nvim-treesitter-context;
|
||||||
roslyn-nvim = custom-flakes.packages."${system}".roslyn-nvim;
|
roslyn-nvim = custom-flakes.packages."${system}".roslyn-nvim;
|
||||||
ionide-nvim = custom-flakes.packages."${system}".ionide-nvim;
|
ionide-nvim = custom-flakes.packages."${system}".ionide-nvim;
|
||||||
|
nvim = neovim-flake.packages."${system}".neovim;
|
||||||
# TODO(zaphar): Until nixpkgs update to a newer version of tree-sitter the queries will be wrong
|
# TODO(zaphar): Until nixpkgs update to a newer version of tree-sitter the queries will be wrong
|
||||||
# for csharp
|
# for csharp
|
||||||
#tree-sitter-csharp = pkgs.callPackage ./nvim-treesitter-csharp.nix {
|
#tree-sitter-csharp = pkgs.callPackage ./nvim-treesitter-csharp.nix {
|
||||||
@ -116,6 +137,7 @@
|
|||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
custom-neovim = nvim;
|
||||||
lorri = unstablePkgs.lorri;
|
lorri = unstablePkgs.lorri;
|
||||||
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
|
avante-nvim = unstablePkgs.vimPlugins.avante-nvim;
|
||||||
copilot-lua = unstablePkgs.vimPlugins.copilot-lua;
|
copilot-lua = unstablePkgs.vimPlugins.copilot-lua;
|
||||||
@ -125,7 +147,7 @@
|
|||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
neovim.vimAlias = true;
|
neovim.vimAlias = true;
|
||||||
neovim.viAlias = true;
|
neovim.viAlias = true;
|
||||||
#neovim.package = pkgs.custom-neovim;
|
neovim.package = pkgs.custom-neovim;
|
||||||
neovim.configure = {
|
neovim.configure = {
|
||||||
customRC = "lua << EOF
|
customRC = "lua << EOF
|
||||||
${builtins.readFile ./init.lua}
|
${builtins.readFile ./init.lua}
|
||||||
@ -203,6 +225,8 @@ EOF";
|
|||||||
direnv-vim
|
direnv-vim
|
||||||
mcphub-nvim
|
mcphub-nvim
|
||||||
]) ++ [
|
]) ++ [
|
||||||
|
possession-nvim
|
||||||
|
harpoon-nvim
|
||||||
d2-vim
|
d2-vim
|
||||||
hunk-nvim
|
hunk-nvim
|
||||||
neogit-nvim
|
neogit-nvim
|
||||||
@ -213,9 +237,9 @@ EOF";
|
|||||||
};
|
};
|
||||||
environment.systemPackages = (with pkgs; [
|
environment.systemPackages = (with pkgs; [
|
||||||
terraform-ls
|
terraform-ls
|
||||||
tinymist
|
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
nodePackages.jsdoc
|
nodePackages.jsdoc
|
||||||
|
python312Packages.jedi-language-server
|
||||||
# TODO find a version of the julia package that will install
|
# TODO find a version of the julia package that will install
|
||||||
# on darwin and add it as an overlay
|
# on darwin and add it as an overlay
|
||||||
nil-pkg
|
nil-pkg
|
||||||
@ -295,11 +319,13 @@ EOF";
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = (with pkgs; [
|
environment.systemPackages = (with pkgs; [
|
||||||
|
isabelle
|
||||||
sheetsui
|
sheetsui
|
||||||
lean4
|
lean4
|
||||||
quint
|
quint
|
||||||
quint-lsp
|
quint-lsp
|
||||||
terraform # TODO(jeremy): Replace with opentofu when that is an option.
|
terraform # TODO(jeremy): Replace with opentofu when that is an option.
|
||||||
|
nomad
|
||||||
oha
|
oha
|
||||||
nodejs
|
nodejs
|
||||||
gnumake
|
gnumake
|
||||||
|
@ -164,26 +164,23 @@ local caps = vim.tbl_deep_extend(
|
|||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
local configure_lsp = function(name, config)
|
|
||||||
vim.lsp.enable(name)
|
|
||||||
vim.lsp.config(name, config)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Typst
|
-- Typst
|
||||||
configure_lsp('tinymist', {
|
lspconfig.tinymist.setup {
|
||||||
capabilities = caps,
|
capabilities = caps,
|
||||||
settings = {
|
settings = {
|
||||||
exportPdf = "onSave",
|
exportPdf = "onSave",
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
|
||||||
-- Terraform lsp setup
|
-- Terraform lsp setup
|
||||||
configure_lsp('terraformls', {})
|
lspconfig.terraformls.setup {}
|
||||||
|
|
||||||
-- Nix language server support
|
-- Nix language server support
|
||||||
configure_lsp('nil_ls', {
|
lspconfig.nil_ls.setup {
|
||||||
capabilities = caps,
|
capabilities = caps,
|
||||||
})
|
}
|
||||||
|
|
||||||
|
lspconfig.jedi_language_server.setup {}
|
||||||
|
|
||||||
require('roslyn').setup({
|
require('roslyn').setup({
|
||||||
-- client, bufnr
|
-- client, bufnr
|
||||||
@ -195,14 +192,23 @@ require('roslyn').setup({
|
|||||||
log_level = "Trace",
|
log_level = "Trace",
|
||||||
});
|
});
|
||||||
|
|
||||||
-- Typescript language server support
|
--ocaml
|
||||||
configure_lsp('tsserver', {
|
lspconfig.ocamllsp.setup {
|
||||||
cmd = { 'typescript-language-server', '--stdio' },
|
|
||||||
capabilities = caps
|
capabilities = caps
|
||||||
})
|
}
|
||||||
|
|
||||||
|
-- Java language server support
|
||||||
|
lspconfig.java_language_server.setup {
|
||||||
|
capabilities = caps
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Typescript language server support
|
||||||
|
lspconfig.tsserver.setup {
|
||||||
|
capabilities = caps
|
||||||
|
}
|
||||||
|
|
||||||
-- Rust language server support
|
-- Rust language server support
|
||||||
configure_lsp('rust_analyzer', {
|
lspconfig.rust_analyzer.setup {
|
||||||
settings = {
|
settings = {
|
||||||
-- https://github.com/rust-lang/rust-analyzer/blob/master/docs/user/generated_config.adoc
|
-- https://github.com/rust-lang/rust-analyzer/blob/master/docs/user/generated_config.adoc
|
||||||
['rust-analyzer'] = {
|
['rust-analyzer'] = {
|
||||||
@ -210,11 +216,10 @@ configure_lsp('rust_analyzer', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
capabilities = caps
|
capabilities = caps
|
||||||
})
|
}
|
||||||
|
|
||||||
-- lua language server setup.
|
-- lua language server setup.
|
||||||
configure_lsp('lua_ls', {
|
lspconfig.lua_ls.setup {
|
||||||
cmd = { 'lua-language-server' },
|
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
runtime = { version = 'LuaJIT', },
|
runtime = { version = 'LuaJIT', },
|
||||||
@ -234,13 +239,7 @@ configure_lsp('lua_ls', {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
capabilities = caps
|
capabilities = caps
|
||||||
})
|
}
|
||||||
|
|
||||||
configure_lsp('ty', {
|
|
||||||
cmd = { 'ty', 'server' },
|
|
||||||
filetypes = { 'python' },
|
|
||||||
root_markers = { 'ty.toml', 'pyproject.toml', '.git' },
|
|
||||||
})
|
|
||||||
|
|
||||||
-- lsp configuration
|
-- lsp configuration
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
@ -273,19 +272,18 @@ vim.api.nvim_create_autocmd({ 'BufEnter', 'InsertLeave', 'CursorHold' }, {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- LSP Diagnostics Options Setup
|
-- LSP Diagnostics Options Setup
|
||||||
vim.diagnostics.config({ signs = {
|
local sign = function(opts)
|
||||||
text = {
|
vim.fn.sign_define(opts.name, {
|
||||||
[vim.diagnostic.severity.ERROR] = '🔥',
|
texthl = opts.name,
|
||||||
[vim.diagnostic.severity.WARN] = '⚠️',
|
text = opts.text,
|
||||||
[vim.diagnostic.severity.HINT] = '➡️',
|
numhl = ''
|
||||||
[vim.diagnostic.severity.INFO] = '🗒️',
|
})
|
||||||
},
|
end
|
||||||
})
|
|
||||||
|
|
||||||
--sign({ name = 'DiagnosticSignError', text = '🔥' })
|
sign({ name = 'DiagnosticSignError', text = '🔥' })
|
||||||
--sign({ name = 'DiagnosticSignWarn', text = '⚠️' })
|
sign({ name = 'DiagnosticSignWarn', text = '⚠️' })
|
||||||
--sign({ name = 'DiagnosticSignHint', text = '➡️' })
|
sign({ name = 'DiagnosticSignHint', text = '➡️' })
|
||||||
--sign({ name = 'DiagnosticSignInfo', text = '🗒️' })
|
sign({ name = 'DiagnosticSignInfo', text = '🗒️' })
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
@ -339,46 +337,7 @@ require('nvim-treesitter.configs').setup {
|
|||||||
extended_mode = true,
|
extended_mode = true,
|
||||||
max_file_lines = nil,
|
max_file_lines = nil,
|
||||||
},
|
},
|
||||||
textobjects = {
|
textobjects = { enable = true },
|
||||||
move = {
|
|
||||||
enable = true,
|
|
||||||
set_jumps = true, -- whether to set jumps in the jumplist
|
|
||||||
goto_next_start = {
|
|
||||||
["]m"] = "@function.outer",
|
|
||||||
["]]"] = { query = "@class.outer", desc = "Next class start" },
|
|
||||||
--
|
|
||||||
-- You can use regex matching (i.e. lua pattern) and/or pass a list in a "query" key to group multiple queries.
|
|
||||||
["]o"] = "@loop.*",
|
|
||||||
-- ["]o"] = { query = { "@loop.inner", "@loop.outer" } }
|
|
||||||
--
|
|
||||||
-- You can pass a query group to use query from `queries/<lang>/<query_group>.scm file in your runtime path.
|
|
||||||
-- Below example nvim-treesitter's `locals.scm` and `folds.scm`. They also provide highlights.scm and indent.scm.
|
|
||||||
["]s"] = { query = "@local.scope", query_group = "locals", desc = "Next scope" },
|
|
||||||
["]z"] = { query = "@fold", query_group = "folds", desc = "Next fold" },
|
|
||||||
},
|
|
||||||
goto_next_end = {
|
|
||||||
["]M"] = "@function.outer",
|
|
||||||
["]["] = "@class.outer",
|
|
||||||
},
|
|
||||||
goto_previous_start = {
|
|
||||||
["[m"] = "@function.outer",
|
|
||||||
["[["] = "@class.outer",
|
|
||||||
},
|
|
||||||
goto_previous_end = {
|
|
||||||
["[M"] = "@function.outer",
|
|
||||||
["[]"] = "@class.outer",
|
|
||||||
},
|
|
||||||
-- Below will go to either the start or the end, whichever is closer.
|
|
||||||
-- Use if you want more granular movements
|
|
||||||
-- Make it even more gradual by adding multiple queries and regex.
|
|
||||||
goto_next = {
|
|
||||||
["]d"] = "@conditional.outer",
|
|
||||||
},
|
|
||||||
goto_previous = {
|
|
||||||
["[d"] = "@conditional.outer",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
@ -510,6 +469,33 @@ vim.keymap.set("n", "<Leader>ga", function()
|
|||||||
vim.cmd("!git add %")
|
vim.cmd("!git add %")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
require('possession').setup {
|
||||||
|
commands = {
|
||||||
|
save = 'SSave',
|
||||||
|
load = 'SLoad',
|
||||||
|
delete = 'SDelete',
|
||||||
|
list = 'SList',
|
||||||
|
},
|
||||||
|
autosave = {
|
||||||
|
current = true,
|
||||||
|
on_load = true,
|
||||||
|
on_quit = true,
|
||||||
|
},
|
||||||
|
telescope = {
|
||||||
|
list = {
|
||||||
|
default_action = 'load',
|
||||||
|
mappings = {
|
||||||
|
save = { n = '<c-x>', i = '<c-x>' },
|
||||||
|
load = { n = '<c-v>', i = '<c-v>' },
|
||||||
|
delete = { n = '<c-t>', i = '<c-t>' },
|
||||||
|
rename = { n = '<c-r>', i = '<c-r>' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
telescope.load_extension('possession')
|
||||||
-- https://github.com/nvim-telescope/telescope.nvim
|
-- https://github.com/nvim-telescope/telescope.nvim
|
||||||
telescope.setup({
|
telescope.setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
@ -531,6 +517,9 @@ telescope.setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local harpoon = require('harpoon')
|
||||||
|
|
||||||
|
harpoon:setup()
|
||||||
|
|
||||||
local lean = require 'lean'
|
local lean = require 'lean'
|
||||||
|
|
||||||
@ -549,6 +538,7 @@ lean.setup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- telescope keymaps
|
-- telescope keymaps
|
||||||
|
vim.keymap.set("n", "<Leader>pl", telescope.extensions.possession.list)
|
||||||
-- TODO(zaphar): Remove this once my muscle memory has set in.
|
-- TODO(zaphar): Remove this once my muscle memory has set in.
|
||||||
vim.keymap.set("n", "<Leader>nff", telescope_builtins.fd)
|
vim.keymap.set("n", "<Leader>nff", telescope_builtins.fd)
|
||||||
vim.keymap.set("n", "<Leader>ff", telescope_builtins.fd)
|
vim.keymap.set("n", "<Leader>ff", telescope_builtins.fd)
|
||||||
@ -564,6 +554,11 @@ end)
|
|||||||
vim.keymap.set("n", "<leader>lds", telescope_builtins.lsp_document_symbols, { desc = "[D]ocument [S]ymbols" })
|
vim.keymap.set("n", "<leader>lds", telescope_builtins.lsp_document_symbols, { desc = "[D]ocument [S]ymbols" })
|
||||||
vim.keymap.set("n", "<leader>lws", telescope_builtins.lsp_dynamic_workspace_symbols, { desc = "[W]orkspace [S]ymbols" })
|
vim.keymap.set("n", "<leader>lws", telescope_builtins.lsp_dynamic_workspace_symbols, { desc = "[W]orkspace [S]ymbols" })
|
||||||
|
|
||||||
|
-- harpoon keymaps
|
||||||
|
vim.keymap.set("n", "<Leader>ha", function() harpoon:list():append() end)
|
||||||
|
vim.keymap.set("n", "<Leader>he", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
|
vim.keymap.set("n", "<Leader>hj", function() harpoon:list():prev() end)
|
||||||
|
vim.keymap.set("n", "<Leader>hk", function() harpoon:list():next() end)
|
||||||
|
|
||||||
-- codelens keymaps
|
-- codelens keymaps
|
||||||
vim.keymap.set("n", "<Leader>rr", vim.lsp.codelens.run)
|
vim.keymap.set("n", "<Leader>rr", vim.lsp.codelens.run)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user