Archived
0
0
Fork 0

add rust tooling

This commit is contained in:
Daryl Ronningen 2022-11-22 22:33:38 -08:00
parent 4e88cd1576
commit 06bd257e15
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
3 changed files with 21 additions and 0 deletions

View file

@ -14,6 +14,7 @@ cmp.setup({
{ name = "vsnip" },
{ name = "buffer" },
{ name = "path" },
{ name = "crates" },
},
confirm_opts = {
behavior = cmp.ConfirmBehavior.Replace,

View file

@ -0,0 +1,3 @@
local rt = require("rust-tools")
rt.setup({})

View file

@ -270,6 +270,23 @@ return packer.startup(function(use)
end,
})
-- Rust tooling
use({
"simrat39/rust-tools.nvim",
event = "BufReadPre",
config = function()
require("plugins.configs.rust-tools")
end,
})
use({
"Saecki/crates.nvim",
event = { "BufRead Cargo.toml" },
config = function()
require("crates").setup()
end,
})
if PACKER_BOOTSTRAP then
require("packer").sync()
end