From bd857965dc1942d13378a3a3216dc5837ea84bd0 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Thu, 1 Aug 2024 18:43:46 +0530 Subject: [PATCH] feat: Exclude .direnv in rust-analyzer --- flake.lock | 2 +- neovim/nvim.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 98114fe1..3de0c302 100644 --- a/flake.lock +++ b/flake.lock @@ -1722,7 +1722,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-adYgrV9u1JTqP7ccDKNG6ClUkD4lr3VFiPaOGS3zvgw=", + "narHash": "sha256-2pBZ4zgpXMBomJLn5fMnWQdlDeFEUz7YkSk3i0ksDkg=", "path": "./neovim", "type": "path" }, diff --git a/neovim/nvim.nix b/neovim/nvim.nix index 776a41ec..4ee73ada 100644 --- a/neovim/nvim.nix +++ b/neovim/nvim.nix @@ -208,6 +208,13 @@ in rec { # return { '${pkgs.ra-multiplex}/bin/ra-multiplex', 'client' } # end # ''; + default_settings = ''{ + ['rust-analyzer'] = { + files = { + excludeDirs = {".git", ".direnv"}, + }, + }, + }''; }; dap = { autoload_configurations = false;