more useful keybindings
This commit is contained in:
parent
52981fda4b
commit
9c4287f016
2 changed files with 36 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# Nixvim template
|
||||
# miovim
|
||||
|
||||
This template gives you a good starting point for configuring nixvim standalone.
|
||||
this neovim config is highly inspired from lazyvim, but with some tweaks and changes i added!
|
||||
|
||||
## Configuring
|
||||
|
||||
|
|
|
@ -134,6 +134,16 @@
|
|||
desc = "Buffer Diagnostics (Trouble)";
|
||||
};
|
||||
}
|
||||
|
||||
# vertical split
|
||||
{
|
||||
mode = "n";
|
||||
action = "<cmd>vsplit<cr>";
|
||||
key = "<Leader>|";
|
||||
options = {
|
||||
desc = "Vertical Split";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
plugins.fzf-lua.keymaps = {
|
||||
|
@ -142,4 +152,28 @@
|
|||
"<leader>gf" = "git_files";
|
||||
"<leader>," = "buffers";
|
||||
};
|
||||
|
||||
lsp.keymaps = [
|
||||
{
|
||||
key = "gd";
|
||||
lspBufAction = "definition";
|
||||
}
|
||||
{
|
||||
key = "gD";
|
||||
lspBufAction = "references";
|
||||
}
|
||||
{
|
||||
key = "gt";
|
||||
lspBufAction = "type_definition";
|
||||
}
|
||||
{
|
||||
key = "gi";
|
||||
lspBufAction = "implementation";
|
||||
}
|
||||
{
|
||||
key = "K";
|
||||
lspBufAction = "hover";
|
||||
}
|
||||
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue