From f032fb9e2fadaaec6f71aaf45ed1d94128ea45cd Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Thu, 3 Oct 2024 11:41:10 -0300 Subject: feat: add rust tools --- lua/config/keymaps.lua | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'lua/config/keymaps.lua') 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", "vn", vim.diagnostic.goto_next, { desc = "Goes to next diagnostic error" }) --- map("n", "vp", vim.diagnostic.goto_prev, { desc = "Goes to prev diagnostic error" }) map( "n", "vn", @@ -129,24 +127,6 @@ map( function() require('nvim-python-repl').toggle_vertical() end, { desc = "Create REPL in vertical or horizontal split"} ) --- map( --- "n", --- "rl", --- function() require('rust-tools').inlay_hints.enable() end, --- {desc = "Enable inlay hints auto update and set them for all the buffers"} --- ) --- map( --- "n", --- "rdl", --- function() require('rust-tools').inlay_hints.disable() end, --- {desc = "Disable inlay hints auto update and unset them for all buffers"} --- ) --- map( --- "n", --- "rrn", --- function () require('rust-tools').runnables.runnables() end, --- {desc = "run rust"} --- ) map( "n", "-", @@ -167,3 +147,11 @@ vim.api.nvim_set_keymap( ':lua ToggleWrap()', { noremap = true, silent = true } ) +vim.keymap.set +( + "n", + "rrn", + ':RustLsp runnables', + {desc = "run rust"} +) + -- cgit v1.2.3