From 21dec419b0f65728c5fecb79bfd4aa85c0fa49a9 Mon Sep 17 00:00:00 2001 From: Yaser Alraddadi Date: Sun, 16 Feb 2025 17:39:32 +0300 Subject: [PATCH] update --- init.lua | 26 ++++++++++++------------- lua/custom/plugins/rust.lua | 38 ++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 33 deletions(-) diff --git a/init.lua b/init.lua index 55c35e7f..7736d627 100644 --- a/init.lua +++ b/init.lua @@ -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 diff --git a/lua/custom/plugins/rust.lua b/lua/custom/plugins/rust.lua index 92fd7351..c41aafe6 100644 --- a/lua/custom/plugins/rust.lua +++ b/lua/custom/plugins/rust.lua @@ -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, + -- }, }