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;
|
inlayHints.enable = true;
|
||||||
# Nice mappings that I use :3
|
# Nice mappings that I use :3
|
||||||
mappings = {
|
mappings = {
|
||||||
codeAction = "<leader>ca";
|
codeAction = null; # in keymaps
|
||||||
goToDeclaration = "gD";
|
goToDeclaration = "gD";
|
||||||
goToDefinition = "gd";
|
goToDefinition = "gd";
|
||||||
listReferences = "gr";
|
# TODO: changing these works but there is something else defining stuff
|
||||||
goToType = "gy";
|
# like grn, grr, grt, etc
|
||||||
|
listReferences = "grr";
|
||||||
|
goToType = "grt";
|
||||||
hover = "K";
|
hover = "K";
|
||||||
nextDiagnostic = null; # ]d
|
nextDiagnostic = null; # ]d
|
||||||
openDiagnosticFloat = "<leader>d";
|
openDiagnosticFloat = "<leader>d";
|
||||||
renameSymbol = "rn";
|
renameSymbol = "grn";
|
||||||
documentHighlight = null;
|
documentHighlight = null;
|
||||||
listDocumentSymbols = null;
|
listDocumentSymbols = null;
|
||||||
listImplementations = null;
|
listImplementations = null;
|
||||||
|
@ -83,6 +85,14 @@
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
addDefaultGrammars = 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 = {
|
debugger.nvim-dap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -40,6 +40,7 @@ in
|
||||||
# subtle nice features
|
# subtle nice features
|
||||||
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
||||||
visual-indent = 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>";
|
clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,10 @@ in
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
switch = "nh darwin switch ~/config";
|
switch = "nh darwin switch ~/config";
|
||||||
|
gg = "lazygit";
|
||||||
|
ga = "git add";
|
||||||
|
g = "git status";
|
||||||
|
gp = "git pull --rebase && git push";
|
||||||
};
|
};
|
||||||
profileExtra = ''
|
profileExtra = ''
|
||||||
function python() {
|
function python() {
|
||||||
|
|
Loading…
Reference in a new issue