From 9bb4d876a498987ba2d3bf4b7b7ec827bb609a1f Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 3 Sep 2024 17:41:07 -0400 Subject: [PATCH] change rust run & debug keymaps to use previous target (when available) this might prove annoying at some point, but i figure this is by far the most common way i would use these (to re-run/re-debug the same target as i'm working and in between changes, etc) --- ftplugin/rust.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/rust.lua b/ftplugin/rust.lua index a66ff20..28e5a45 100644 --- a/ftplugin/rust.lua +++ b/ftplugin/rust.lua @@ -8,9 +8,9 @@ local function map(mode, lhs, rhs, opts) end map('n', 'ra', 'RustLsp codeAction', { desc = 'Code [A]ction' }) -map('n', 'rr', 'RustLsp run', { desc = '[R]un' }) +map('n', 'rr', 'RustLsp! runnables', { desc = '[R]un' }) map('n', 'rR', 'RustLsp runnables', { desc = '[R]unnables' }) -map('n', 'rd', 'RustLsp debug', { desc = '[D]ebug' }) +map('n', 'rd', 'RustLsp! debuggables', { desc = '[D]ebug' }) map('n', 'rD', 'RustLsp debuggables', { desc = '[D]ebuggables' }) map('n', 'rt', 'RustLsp testables', { desc = '[T]estables' }) map('n', 're', 'RustLsp explainError', { desc = '[E]xplain Error' })