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 = {
checkOnSave = {
allFeatures = true,
overrideCommand = {
'cargo',
'clippy',
'--workspace',
'--message-format=json',
'--all-targets',
'--all-features',
},
},
},
-- rust_analyzer = {
-- checkOnSave = {
-- allFeatures = true,
-- overrideCommand = {
-- 'cargo',
-- 'clippy',
-- '--workspace',
-- '--message-format=json',
-- '--all-targets',
-- '--all-features',
-- },
-- },
-- },
-- python -> LSP: basedpyright, Formatter & linter
-- https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/docs/setup/NEOVIM.md

View File

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