From aa2c108f5af9fbf733cfa8606779623d88606b3d Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Fri, 1 Sep 2023 18:00:18 +0200 Subject: [PATCH] Ensure that rust-analyzer always uses all features --- lua/valeth/packer/lsp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/valeth/packer/lsp.lua b/lua/valeth/packer/lsp.lua index acd6955..002db19 100644 --- a/lua/valeth/packer/lsp.lua +++ b/lua/valeth/packer/lsp.lua @@ -40,6 +40,9 @@ lsp_config.lua_ls.setup(lsp_zero.nvim_lua_ls()) lsp_config.rust_analyzer.setup { settings = { ["rust-analyzer"] = { + cargo = { + features = "all" + }, rustfmt = { -- needs to use nightly channel to use unstable options extraArgs = { "+nightly" }