This commit is contained in:
Yaser Alraddadi 2025-02-16 17:39:32 +03:00
parent b7ce68ddde
commit 21dec419b0
2 changed files with 31 additions and 33 deletions

View File

@ -721,19 +721,19 @@ require('lazy').setup({
}, },
}, },
rust_analyzer = { -- rust_analyzer = {
checkOnSave = { -- checkOnSave = {
allFeatures = true, -- allFeatures = true,
overrideCommand = { -- overrideCommand = {
'cargo', -- 'cargo',
'clippy', -- 'clippy',
'--workspace', -- '--workspace',
'--message-format=json', -- '--message-format=json',
'--all-targets', -- '--all-targets',
'--all-features', -- '--all-features',
}, -- },
}, -- },
}, -- },
-- python -> LSP: basedpyright, Formatter & linter -- python -> LSP: basedpyright, Formatter & linter
-- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md -- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md

View File

@ -1,22 +1,16 @@
return { return {
{
'rust-lang/rust.vim',
ft = 'rust',
init = function()
vim.g.rustfmt_autosave = 1
end,
},
-- { -- {
-- "simrat39/rust-tools.nvim", -- 'rust-lang/rust.vim',
-- ft = "rust", -- ft = 'rust',
-- dependencies = "neovim/nvim-lspconfig", -- init = function()
-- opts = function() -- vim.g.rustfmt_autosave = 1
-- return require "custom.configs.rust-tools"
-- end,
-- config = function(_, opts)
-- require("rust-tools").setup(opts)
-- end, -- end,
-- }, -- },
{
'mrcjkb/rustaceanvim',
version = '^5', -- Recommended
lazy = false, -- This plugin is already lazy
},
{ {
'saecki/crates.nvim', 'saecki/crates.nvim',
ft = { 'rust', 'toml' }, ft = { 'rust', 'toml' },
@ -27,8 +21,12 @@ return {
crates.show() crates.show()
end, end,
}, },
{ -- {
'cordx56/rustowl', -- 'cordx56/rustowl',
dependencies = { 'neovim/nvim-lspconfig' }, -- dependencies = { 'neovim/nvim-lspconfig' },
}, -- -- config = function()
-- -- local lspconfig = require 'lspconfig'
-- -- lspconfig.rustowlsp.setup {}
-- -- end,
-- },
} }