From d00e447ef64901db90faac1ec81a9b35fb3b6683 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 19 Sep 2024 18:30:37 +0200 Subject: nixvim/treesitter: remove ensure_installed For some crazy reasons treesitter makes nvim hang for some time when using `ensure_installed = "all"`. I assume it's because there are just a lot of supported file formats, therefore the hang. Instead of using ensure_installed I just activated the `auto_install` feature to automatically compile missing file-types if needed. --- common/home/programs/nixvim/default.nix | 4 +--- flake.lock | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/home/programs/nixvim/default.nix b/common/home/programs/nixvim/default.nix index 628b8d0..5fe75d9 100644 --- a/common/home/programs/nixvim/default.nix +++ b/common/home/programs/nixvim/default.nix @@ -73,13 +73,11 @@ treesitter = { enable = true; settings = { - auto_install = false; - ensure_installed = "all"; + auto_install = true; highlight = { additional_vim_regex_highlighting = true; enable = true; }; - ignore_install = [ "rust" ]; incremental_selection = { enable = true; keymaps = { diff --git a/flake.lock b/flake.lock index b9256fa..7369ee3 100644 --- a/flake.lock +++ b/flake.lock @@ -236,11 +236,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1726676531, - "narHash": "sha256-i8Pbd7JszwuCb0HqzAPypv2ytdcsFeAMFqbrmLaN4BE=", + "lastModified": 1726752344, + "narHash": "sha256-lMFX1T1NiZ23wVFQKdAcGzt3phrmp808s970TsSwWeY=", "owner": "nix-community", "repo": "nixvim", - "rev": "9307b201a3dc57d5b71ded4f897ea9d096544877", + "rev": "2df1bdd14d564235a55552dfc6a9dd5018cbad9b", "type": "github" }, "original": { -- cgit v1.2.3-70-g09d2