2023-08-23 14:59:36 +00:00
|
|
|
local plugins = {
|
|
|
|
{
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
config = function()
|
|
|
|
require "plugins.configs.lspconfig"
|
|
|
|
require "custom.configs.lspconfig"
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"williamboman/mason.nvim",
|
|
|
|
opts = {
|
|
|
|
ensure_installed = {
|
|
|
|
"lua-language-server",
|
|
|
|
"rust-analyzer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rust-lang/rust.vim",
|
|
|
|
ft = "rust",
|
|
|
|
init = function ()
|
|
|
|
vim.g.rustfmt_autosave = 1
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"simrat39/rust-tools.nvim",
|
|
|
|
ft = "rust",
|
|
|
|
dependencies = "neovim/nvim-lspconfig",
|
|
|
|
opts = function ()
|
|
|
|
return require "custom.configs.rust-tools"
|
|
|
|
end,
|
|
|
|
config = function (_, opts)
|
|
|
|
require("rust-tools").setup(opts)
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"mfussenegger/nvim-dap"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"saecki/crates.nvim",
|
|
|
|
ft = {"rust", "toml"},
|
|
|
|
config = function (_, opts)
|
|
|
|
local crates = require("crates")
|
|
|
|
crates.setup(opts)
|
|
|
|
crates.show()
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
opts = function ()
|
2023-08-23 16:00:24 +00:00
|
|
|
local M = require "plugins.configs.cmp"
|
2023-08-23 14:59:36 +00:00
|
|
|
table.insert(M.sources, {name = "crates"})
|
|
|
|
return M
|
|
|
|
end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return plugins
|