diff --git a/modules/universal/home-manager/neovim.nix b/modules/universal/home-manager/neovim.nix index 03d4d049..78a589d1 100644 --- a/modules/universal/home-manager/neovim.nix +++ b/modules/universal/home-manager/neovim.nix @@ -45,7 +45,7 @@ # config taken from: https://github.com/i077/system/blob/master/modules/home/neovim/default.nix # this is required for tree-sitter to even highlight ({ - plugin = (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)); + plugin = nvim-treesitter.withAllGrammars; type = "lua"; config = '' require'nvim-treesitter.configs'.setup { diff --git a/nixpatches/list.nix b/nixpatches/list.nix index 787f3f85..df2f3eed 100644 --- a/nixpatches/list.nix +++ b/nixpatches/list.nix @@ -6,6 +6,12 @@ fetchpatch: [ sha256 = "sha256-OczjlQcG7sTM/V9Y9VL/qdwaWPKfjAJsh3czqqhRQig="; }) + # vimPlugins.nvim-treesitter: add tree sitter grammars + (fetchpatch { + url = "https://github.com/NixOS/nixpkgs/pull/198606.diff"; + sha256 = "sha256-y+R7He5Op30TCojTHmkdmD0pBvR+ErlmUm8bNGHHJUg="; + }) + # # kaiteki: init at 2022-09-03 # vendorHash changes too frequently (might not be reproducible).