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, +})