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" ]; }; + }; }; };