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 @@...@@ -60,15 +60,17 @@
60 inlayHints.enable = true;60 inlayHints.enable = true;
61 # Nice mappings that I use :361 # Nice mappings that I use :3
62 mappings = {62 mappings = {
63 codeAction = "<leader>ca";63 codeAction = null; # in keymaps
64 goToDeclaration = "gD";64 goToDeclaration = "gD";
65 goToDefinition = "gd";65 goToDefinition = "gd";
66 listReferences = "gr";66 # TODO: changing these works but there is something else defining stuff
67 goToType = "gy";67 # like grn, grr, grt, etc
68 listReferences = "grr";
69 goToType = "grt";
68 hover = "K";70 hover = "K";
69 nextDiagnostic = null; # ]d71 nextDiagnostic = null; # ]d
70 openDiagnosticFloat = "<leader>d";72 openDiagnosticFloat = "<leader>d";
71 renameSymbol = "rn";73 renameSymbol = "grn";
72 documentHighlight = null;74 documentHighlight = null;
73 listDocumentSymbols = null;75 listDocumentSymbols = null;
74 listImplementations = null;76 listImplementations = null;
...@@ -83,6 +85,14 @@...@@ -83,6 +85,14 @@
83 treesitter = {85 treesitter = {
84 enable = true;86 enable = true;
85 addDefaultGrammars = true;87 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 };
86 };96 };
87 debugger.nvim-dap = {97 debugger.nvim-dap = {
88 enable = true;98 enable = true;
modules/neovim/keybind.nix+1
...@@ -40,6 +40,7 @@ in...@@ -40,6 +40,7 @@ in
40 # subtle nice features40 # subtle nice features
41 visual-dedent = keyRemap "v" "<" "<gv"; # keep selection41 visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
42 visual-indent = keyRemap "v" ">" ">gv"; # keep selection42 visual-indent = keyRemap "v" ">" ">gv"; # keep selection
43 visual-overwrite = keyRemap "v" "p" "pgvygv<esc>"; # re-yank text
43 clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";44 clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
44 };45 };
4546
users/clover/home.nix+4
...@@ -69,6 +69,10 @@ in...@@ -69,6 +69,10 @@ in
6969
70 shellAliases = {70 shellAliases = {
71 switch = "nh darwin switch ~/config";71 switch = "nh darwin switch ~/config";
72 gg = "lazygit";
73 ga = "git add";
74 g = "git status";
75 gp = "git pull --rebase && git push";
72 };76 };
73 profileExtra = ''77 profileExtra = ''
74 function python() {78 function python() {