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 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common') 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 = { -- cgit v1.2.3-70-g09d2