authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-08-21 15:38:12-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-08-21 15:38:12-07:00
logcf72e73615f2872f4342732aafd6c735cb31aace
treecc795daebf347737116ec6b363e68c3741b9bbda
parent8b1a2872ac3437b30b2785bff1014a5399d54e5f

changes to neovim lsp keybinds


3 files changed, 19 insertions(+), 4 deletions(-)

modules/neovim/default.nix+14-4
......@@ -60,15 +60,17 @@
6060 inlayHints.enable = true;
6161 # Nice mappings that I use :3
6262 mappings = {
63 codeAction = "<leader>ca";
63 codeAction = null; # in keymaps
6464 goToDeclaration = "gD";
6565 goToDefinition = "gd";
66 listReferences = "gr";
67 goToType = "gy";
66 # TODO: changing these works but there is something else defining stuff
67 # like grn, grr, grt, etc
68 listReferences = "grr";
69 goToType = "grt";
6870 hover = "K";
6971 nextDiagnostic = null; # ]d
7072 openDiagnosticFloat = "<leader>d";
71 renameSymbol = "rn";
73 renameSymbol = "grn";
7274 documentHighlight = null;
7375 listDocumentSymbols = null;
7476 listImplementations = null;
......@@ -83,6 +85,14 @@
8385 treesitter = {
8486 enable = true;
8587 addDefaultGrammars = true;
88 # this is buggy and keybind.nix overwrites its keymaps anyways
89 incrementalSelection.enable = false;
90 mappings.incrementalSelection = {
91 decrementByNode = null;
92 incrementByNode = null;
93 incrementByScope = null;
94 init = null;
95 };
8696 };
8797 debugger.nvim-dap = {
8898 enable = true;
modules/neovim/keybind.nix+1
......@@ -40,6 +40,7 @@ in
4040 # subtle nice features
4141 visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
4242 visual-indent = keyRemap "v" ">" ">gv"; # keep selection
43 visual-overwrite = keyRemap "v" "p" "pgvygv<esc>"; # re-yank text
4344 clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
4445 };
4546
users/clover/home.nix+4
......@@ -69,6 +69,10 @@ in
6969
7070 shellAliases = {
7171 switch = "nh darwin switch ~/config";
72 gg = "lazygit";
73 ga = "git add";
74 g = "git status";
75 gp = "git pull --rebase && git push";
7276 };
7377 profileExtra = ''
7478 function python() {