diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index d9173a1..6b80b14 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -805,6 +805,24 @@ local plugins = { enabled = true, version = "^4", -- Recommended ft = { "rust" }, + config = function() + vim.g.rustaceanvim = { + -- Plugin configuration + tools = {}, + -- LSP configuration + server = { + on_attach = function(client, bufnr) + -- you can also put keymaps in here + end, + default_settings = { + -- rust-analyzer language server configuration + ["rust-analyzer"] = {}, + }, + }, + -- DAP configuration + dap = {}, + } + end, }, { "theHamsta/nvim-dap-virtual-text", @@ -817,13 +835,7 @@ local plugins = { tools = {}, -- LSP configuration server = { - on_attach = function(client, bufnr) - -- you can also put keymaps in here - end, - settings = { - -- rust-analyzer language server configuration - ["rust-analyzer"] = {}, - }, + auto_attach = false, }, -- DAP configuration dap = {