add rust tooling
This commit is contained in:
parent
4e88cd1576
commit
06bd257e15
3 changed files with 21 additions and 0 deletions
|
@ -14,6 +14,7 @@ cmp.setup({
|
||||||
{ name = "vsnip" },
|
{ name = "vsnip" },
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
|
{ name = "crates" },
|
||||||
},
|
},
|
||||||
confirm_opts = {
|
confirm_opts = {
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
|
|
3
lua/plugins/configs/rust-tools.lua
Normal file
3
lua/plugins/configs/rust-tools.lua
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
local rt = require("rust-tools")
|
||||||
|
|
||||||
|
rt.setup({})
|
|
@ -270,6 +270,23 @@ return packer.startup(function(use)
|
||||||
end,
|
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
|
if PACKER_BOOTSTRAP then
|
||||||
require("packer").sync()
|
require("packer").sync()
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue