1
Fork 0
satellite/dotfiles/neovim/lua/my/plugins/rust-tools.lua

24 lines
395 B
Lua
Raw Normal View History

2023-04-17 15:19:41 +02:00
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 = lspconfig.on_attach,
},
})
2023-04-17 19:24:19 +02:00
K.nmap(
"<leader>lc",
"<cmd>RustOpenCargo<cr>",
"Open [c]argo.toml",
true,
true
)
2023-04-17 15:19:41 +02:00
end,
}
return M