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"; + } + + ]; }