diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-10-03 11:41:10 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-10-03 11:41:10 -0300 |
| commit | f032fb9e2fadaaec6f71aaf45ed1d94128ea45cd (patch) | |
| tree | 17bc2e9fe0a3614285b59c75ae801021d31e76df /lua/config/keymaps.lua | |
| parent | fa3e94e60b9edc7c3620f43e207b915eae84bab0 (diff) | |
| download | nvim-conf-f032fb9e2fadaaec6f71aaf45ed1d94128ea45cd.tar.gz nvim-conf-f032fb9e2fadaaec6f71aaf45ed1d94128ea45cd.zip | |
feat: add rust tools
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"} +) + |