26 lines
498 B
Lua
26 lines
498 B
Lua
local K = require("my.keymaps")
|
|
local lspconfig = require("my.plugins.lspconfig")
|
|
|
|
local M = {
|
|
"simrat39/rust-tools.nvim",
|
|
config = function()
|
|
require("rust-tools").setup({
|
|
server = {
|
|
on_attach = function(client, bufnr)
|
|
K.nmap(
|
|
"<leader>lc",
|
|
"<cmd>RustOpenCargo<cr>",
|
|
"Open [c]argo.toml",
|
|
true,
|
|
true
|
|
)
|
|
|
|
lspconfig.on_attach(client, bufnr)
|
|
end,
|
|
},
|
|
})
|
|
end,
|
|
}
|
|
|
|
return M
|