diff options
Diffstat (limited to 'lua/config/keymaps.lua')
| -rw-r--r-- | lua/config/keymaps.lua | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 73478de..6002563 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -69,8 +69,6 @@ map( { desc = "Save the current file and source it for .vim and .lua files" } ) --- map("n", "<leader>vn", vim.diagnostic.goto_next, { desc = "Goes to next diagnostic error" }) --- map("n", "<leader>vp", vim.diagnostic.goto_prev, { desc = "Goes to prev diagnostic error" }) map( "n", "<leader>vn", @@ -129,24 +127,6 @@ map( function() require('nvim-python-repl').toggle_vertical() end, { desc = "Create REPL in vertical or horizontal split"} ) --- map( --- "n", --- "<leader>rl", --- function() require('rust-tools').inlay_hints.enable() end, --- {desc = "Enable inlay hints auto update and set them for all the buffers"} --- ) --- map( --- "n", --- "<leader>rdl", --- function() require('rust-tools').inlay_hints.disable() end, --- {desc = "Disable inlay hints auto update and unset them for all buffers"} --- ) --- map( --- "n", --- "<leader>rrn", --- function () require('rust-tools').runnables.runnables() end, --- {desc = "run rust"} --- ) map( "n", "-", @@ -167,3 +147,11 @@ vim.api.nvim_set_keymap( ':lua ToggleWrap()<CR>', { noremap = true, silent = true } ) +vim.keymap.set +( + "n", + "<leader>rrn", + ':RustLsp runnables<CR>', + {desc = "run rust"} +) + |