changes to neovim lsp keybinds
This commit is contained in:
parent
8b1a2872ac
commit
cf72e73615
3 changed files with 19 additions and 4 deletions
|
@ -60,15 +60,17 @@
|
|||
inlayHints.enable = true;
|
||||
# Nice mappings that I use :3
|
||||
mappings = {
|
||||
codeAction = "<leader>ca";
|
||||
codeAction = null; # in keymaps
|
||||
goToDeclaration = "gD";
|
||||
goToDefinition = "gd";
|
||||
listReferences = "gr";
|
||||
goToType = "gy";
|
||||
# TODO: changing these works but there is something else defining stuff
|
||||
# like grn, grr, grt, etc
|
||||
listReferences = "grr";
|
||||
goToType = "grt";
|
||||
hover = "K";
|
||||
nextDiagnostic = null; # ]d
|
||||
openDiagnosticFloat = "<leader>d";
|
||||
renameSymbol = "rn";
|
||||
renameSymbol = "grn";
|
||||
documentHighlight = null;
|
||||
listDocumentSymbols = null;
|
||||
listImplementations = null;
|
||||
|
@ -83,6 +85,14 @@
|
|||
treesitter = {
|
||||
enable = true;
|
||||
addDefaultGrammars = true;
|
||||
# this is buggy and keybind.nix overwrites its keymaps anyways
|
||||
incrementalSelection.enable = false;
|
||||
mappings.incrementalSelection = {
|
||||
decrementByNode = null;
|
||||
incrementByNode = null;
|
||||
incrementByScope = null;
|
||||
init = null;
|
||||
};
|
||||
};
|
||||
debugger.nvim-dap = {
|
||||
enable = true;
|
||||
|
|
|
@ -40,6 +40,7 @@ in
|
|||
# subtle nice features
|
||||
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
||||
visual-indent = keyRemap "v" ">" ">gv"; # keep selection
|
||||
visual-overwrite = keyRemap "v" "p" "pgvygv<esc>"; # re-yank text
|
||||
clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
|
||||
};
|
||||
|
||||
|
|
|
@ -69,6 +69,10 @@ in
|
|||
|
||||
shellAliases = {
|
||||
switch = "nh darwin switch ~/config";
|
||||
gg = "lazygit";
|
||||
ga = "git add";
|
||||
g = "git status";
|
||||
gp = "git pull --rebase && git push";
|
||||
};
|
||||
profileExtra = ''
|
||||
function python() {
|
||||
|
|
Loading…
Reference in a new issue