From 501ba459333ff4e0382220b4453138e96ff4c9ca Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 10 Sep 2022 22:35:37 -0500 Subject: [PATCH] feat(nvim): add rust-specific bindings --- .../primary/config/after/ftplugin/rust.lua | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dots/.nvim-environments/primary/config/after/ftplugin/rust.lua diff --git a/dots/.nvim-environments/primary/config/after/ftplugin/rust.lua b/dots/.nvim-environments/primary/config/after/ftplugin/rust.lua new file mode 100644 index 00000000..b2862c3b --- /dev/null +++ b/dots/.nvim-environments/primary/config/after/ftplugin/rust.lua @@ -0,0 +1,33 @@ +vim.keymap.set("n", "fr", ":RustRunnables", { + buffer = true, +}) +vim.keymap.set("n", "fd", ":RustDebuggables", { + buffer = true, +}) +vim.keymap.set("n", "fp", ":RustParentModule", { + buffer = true, +}) +vim.keymap.set("n", "fJ", ":RustJoinLines", { + buffer = true, +}) +vim.keymap.set("n", "fh", ":RustHoverActions", { + buffer = true, +}) +vim.keymap.set("n", "fH", ":RustHoverRange", { + buffer = true, +}) +vim.keymap.set("n", "fi", ":RustToggleInlayHints", { + buffer = true, +}) +vim.keymap.set("n", "fm", ":RustExpandMacro", { + buffer = true, +}) +vim.keymap.set("n", "fc", ":RustOpenCargo", { + buffer = true, +}) +vim.keymap.set("n", "fk", ":RustMoveItemUp", { + buffer = true, +}) +vim.keymap.set("n", "fj", ":RustMoveItemDown", { + buffer = true, +})