From 38495f3345276bb52fabfc247a7ec2dfc0df03be Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 26 Feb 2023 12:32:09 -0500 Subject: use stable version of nvim-treesitter --- flake.nix | 4 +++- users/seth/programs/neovim.nix | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 4e3f11c..4d6beb9 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,7 @@ channel = nixpkgsUnstable; modules = []; extraSpecialArgs = { + nixpkgsStable = nixpkgs; standalone = true; }; }; @@ -58,8 +59,8 @@ } ]; specialArgs = { - nixpkgsStable = nixpkgs; desktop = "gnome"; + nixpkgsStable = nixpkgs; standalone = false; wsl = false; }; @@ -86,6 +87,7 @@ ]; specialArgs = { desktop = ""; + nixpkgsStable = nixpkgs; standalone = false; wsl = true; }; diff --git a/users/seth/programs/neovim.nix b/users/seth/programs/neovim.nix index 0f09c43..512e939 100644 --- a/users/seth/programs/neovim.nix +++ b/users/seth/programs/neovim.nix @@ -1,4 +1,10 @@ -{pkgs, ...}: { +{ + pkgs, + nixpkgsStable, + ... +}: let + treesitter-pinned = import nixpkgsStable {system = "x86_64-linux";}; +in { programs.neovim = { enable = true; defaultEditor = true; @@ -36,7 +42,7 @@ nvim-lspconfig null-ls-nvim nvim-tree-lua - nvim-treesitter.withAllGrammars + treesitter-pinned.pkgs.vimPlugins.nvim-treesitter.withAllGrammars nvim-web-devicons plenary-nvim telescope-nvim -- cgit v1.2.3