rust mappings
This commit is contained in:
parent
279e684a60
commit
866c1cb0cc
|
|
@ -197,13 +197,6 @@ M.lspconfig = {
|
||||||
"lsp definition type",
|
"lsp definition type",
|
||||||
},
|
},
|
||||||
|
|
||||||
["<leader>ra"] = {
|
|
||||||
function()
|
|
||||||
require("nvchad_ui.renamer").open()
|
|
||||||
end,
|
|
||||||
"lsp rename",
|
|
||||||
},
|
|
||||||
|
|
||||||
["<leader>ca"] = {
|
["<leader>ca"] = {
|
||||||
function()
|
function()
|
||||||
vim.lsp.buf.code_action()
|
vim.lsp.buf.code_action()
|
||||||
|
|
@ -279,10 +272,9 @@ M.lspconfig = {
|
||||||
M.rust = {
|
M.rust = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
["<leader>rr"] = { "<cmd> RustRun <CR>", "RustRun" },
|
["<leader>rr"] = { "<cmd> RustRunnables <CR>", "RustRunnables" },
|
||||||
["<leader>rR"] = { "<cmd> RustRunnables <CR>", "RustRunnables" },
|
|
||||||
["<leader>rd"] = { "<cmd> RustDebuggables <CR>", "RustDebuggables" },
|
["<leader>rd"] = { "<cmd> RustDebuggables <CR>", "RustDebuggables" },
|
||||||
["<leader>rha"] = { "<cmd> RustHoverActions <CR>", "RustHoverActions" },
|
["<leader>ra"] = { "<cmd> RustHoverActions <CR>", "RustHoverActions" },
|
||||||
["<leader>roc"] = { "<cmd> RustOpenCargo <CR>", "RustOpenCargo" },
|
["<leader>roc"] = { "<cmd> RustOpenCargo <CR>", "RustOpenCargo" },
|
||||||
["<leader>rcg"] = { "<cmd> RustViewCrateGraph <CR>", "RustViewCrateGraph" },
|
["<leader>rcg"] = { "<cmd> RustViewCrateGraph <CR>", "RustViewCrateGraph" },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in New Issue