From f5408014a2ebb0768d157f6d6c013ea07edcb3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 7 Mar 2024 21:51:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20remove(nvim):=20lsp=20r?= =?UTF-8?q?ust=20extra=20code=20removed=20because=20of=20recent=20changes?= =?UTF-8?q?=20in=20the=20lazyvim=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/lang/rust-extended.lua | 76 ------------------- 1 file changed, 76 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/lang/rust-extended.lua b/.config/nvim/lua/plugins/extras/lang/rust-extended.lua index 19cead6e..f1c2bd5a 100644 --- a/.config/nvim/lua/plugins/extras/lang/rust-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/rust-extended.lua @@ -1,81 +1,5 @@ return { { import = "lazyvim.plugins.extras.lang.rust" }, - { - "simrat39/rust-tools.nvim", - enabled = false, - }, - { - "mrcjkb/rustaceanvim", - version = "^4", -- Recommended - ft = { "rust" }, - opts = { - server = { - on_attach = function(client, bufnr) - -- register which-key mappings - local wk = require("which-key") - -- stylua: ignore - wk.register({ - ["cR"] = { function() vim.cmd.RustLsp("codeAction") end, "Code Action" }, - ["dr"] = { function() vim.cmd.RustLsp("debuggables") end, "Rust debuggables" }, - }, { mode = "n", buffer = bufnr }) - end, - default_settings = { - -- rust-analyzer language server configuration - ["rust-analyzer"] = { - cargo = { - allFeatures = true, - loadOutDirsFromCheck = true, - runBuildScripts = true, - }, - -- Add clippy lints for Rust. - checkOnSave = { - allFeatures = true, - command = "clippy", - extraArgs = { "--no-deps" }, - }, - procMacro = { - enable = true, - ignored = { - ["async-trait"] = { "async_trait" }, - ["napi-derive"] = { "napi" }, - ["async-recursion"] = { "async_recursion" }, - }, - }, - }, - }, - }, - }, - config = function(_, opts) - vim.g.rustaceanvim = vim.tbl_deep_extend("force", {}, opts or {}) - end, - }, - { - "nvim-neotest/neotest", - optional = true, - dependencies = { - "rouge8/neotest-rust", - enabled = false, - }, - opts = function(_, opts) - opts.adapters = opts.adapters or {} - vim.list_extend(opts.adapters, { - require("rustaceanvim.neotest"), - }) - end, - }, - { - "neovim/nvim-lspconfig", - opts = { - servers = { - rust_analyzer = {}, - }, - setup = { - rust_analyzer = function() - return true - end, - }, - }, - }, { "stevearc/conform.nvim", opts = function(_, opts)