mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 05:19:48 +01:00
languages/rust: use local leader for binds
This commit is contained in:
parent
2aeec7cb69
commit
48a74623d8
1 changed files with 6 additions and 6 deletions
|
@ -145,13 +145,13 @@ in {
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
default_on_attach(client, bufnr)
|
default_on_attach(client, bufnr)
|
||||||
local opts = { noremap=true, silent=true, buffer = bufnr }
|
local opts = { noremap=true, silent=true, buffer = bufnr }
|
||||||
vim.keymap.set("n", "<leader>rr", ":RustLsp runnables<CR>", opts)
|
vim.keymap.set("n", "<localleader>rr", ":RustLsp runnables<CR>", opts)
|
||||||
vim.keymap.set("n", "<leader>rp", ":RustLsp parentModule<CR>", opts)
|
vim.keymap.set("n", "<localleader>rp", ":RustLsp parentModule<CR>", opts)
|
||||||
vim.keymap.set("n", "<leader>rm", ":RustLsp expandMacro<CR>", opts)
|
vim.keymap.set("n", "<localleader>rm", ":RustLsp expandMacro<CR>", opts)
|
||||||
vim.keymap.set("n", "<leader>rc", ":RustLsp openCargo", opts)
|
vim.keymap.set("n", "<localleader>rc", ":RustLsp openCargo", opts)
|
||||||
vim.keymap.set("n", "<leader>rg", ":RustLsp crateGraph x11", opts)
|
vim.keymap.set("n", "<localleader>rg", ":RustLsp crateGraph x11", opts)
|
||||||
${optionalString cfg.dap.enable ''
|
${optionalString cfg.dap.enable ''
|
||||||
vim.keymap.set("n", "<leader>rd", ":RustLsp debuggables<cr>", opts)
|
vim.keymap.set("n", "<localleader>rd", ":RustLsp debuggables<cr>", opts)
|
||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
"n", "${config.vim.debugger.nvim-dap.mappings.continue}",
|
"n", "${config.vim.debugger.nvim-dap.mappings.continue}",
|
||||||
function()
|
function()
|
||||||
|
|
Loading…
Reference in a new issue