From e44adf456886e8fe87bec99c288be913b37c9d18 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 11 Feb 2024 16:20:23 -0500 Subject: [PATCH] rust-analyzer: ignore direnv folder --- modules/common/neovim/config/lsp.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/common/neovim/config/lsp.nix b/modules/common/neovim/config/lsp.nix index c5f10cc..f1ef697 100644 --- a/modules/common/neovim/config/lsp.nix +++ b/modules/common/neovim/config/lsp.nix @@ -44,7 +44,10 @@ use.lspconfig.rust_analyzer.setup = dsl.callWith { cmd = [ "${pkgs.rust-analyzer}/bin/rust-analyzer" ]; settings = { - "['rust-analyzer']" = { check = { command = "clippy"; }; }; + "['rust-analyzer']" = { + check = { command = "clippy"; }; + files = { excludeDirs = [ ".direnv" ]; }; + }; }; };