summaryrefslogtreecommitdiff
path: root/common/home/programs/nixvim
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-09-19 18:30:37 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-09-19 18:30:37 +0200
commitd00e447ef64901db90faac1ec81a9b35fb3b6683 (patch)
treedaeb18c387f08bdcafd4b96eb9da41ee8d10345e /common/home/programs/nixvim
parent9cb6e4924b35018c496ff419370e7c0ad4e73ce7 (diff)
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.
Diffstat (limited to 'common/home/programs/nixvim')
-rw-r--r--common/home/programs/nixvim/default.nix4
1 files changed, 1 insertions, 3 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 = {