From 9c4287f0167f7406c2d3ec4bc330b897a49edc57 Mon Sep 17 00:00:00 2001 From: harry123 Date: Tue, 8 Jul 2025 11:10:11 +0200 Subject: [PATCH] more useful keybindings --- README.md | 4 ++-- config/keys.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bff36b7..d4abd25 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/keys.nix b/config/keys.nix index add5329..83c88bf 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -134,6 +134,16 @@ desc = "Buffer Diagnostics (Trouble)"; }; } + + # vertical split + { + mode = "n"; + action = "vsplit"; + key = "|"; + options = { + desc = "Vertical Split"; + }; + } ]; plugins.fzf-lua.keymaps = { @@ -142,4 +152,28 @@ "gf" = "git_files"; "," = "buffers"; }; + + lsp.keymaps = [ + { + key = "gd"; + lspBufAction = "definition"; + } + { + key = "gD"; + lspBufAction = "references"; + } + { + key = "gt"; + lspBufAction = "type_definition"; + } + { + key = "gi"; + lspBufAction = "implementation"; + } + { + key = "K"; + lspBufAction = "hover"; + } + + ]; }