neovim: fix python tree-sitter plugin

which was otherwise yielding parsing errors.
This commit is contained in:
colin 2022-10-31 23:05:27 -07:00
parent ad54b9c5fb
commit 8b473ff88f
2 changed files with 7 additions and 1 deletions

View File

@ -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 {

View File

@ -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).