Skip to content

Commit

Permalink
add rust-tools runnables map
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpalmer committed Dec 3, 2021
1 parent d39fbfa commit f556499
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions public dots/vim-nvim/after/ftplugin/rust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ noremap <silent><localleader>cr :Crun<cr>
-- snippets dir- vsnip. Need to try LuaSnip
vim.b.vsnip_snippet_dir = vim.fn.expand "~/.config/nvim/snippets/"

-- rust-tools --
-- Command:
-- RustRunnables
vim.api.nvim_buf_set_keymap(
0,
"n",
"<space>rr",
[[<cmd>lua require('rust-tools.runnables').runnables()<cr>
]],
{ noremap = true, silent = true }
)

-- Lsp maps
vim.api.nvim_buf_set_keymap(
0,
Expand Down

0 comments on commit f556499

Please sign in to comment.