neovim: fix python tree-sitter plugin
which was otherwise yielding parsing errors.
This commit is contained in:
parent
ad54b9c5fb
commit
8b473ff88f
|
@ -45,7 +45,7 @@
|
||||||
# config taken from: https://github.com/i077/system/blob/master/modules/home/neovim/default.nix
|
# config taken from: https://github.com/i077/system/blob/master/modules/home/neovim/default.nix
|
||||||
# this is required for tree-sitter to even highlight
|
# this is required for tree-sitter to even highlight
|
||||||
({
|
({
|
||||||
plugin = (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars));
|
plugin = nvim-treesitter.withAllGrammars;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = ''
|
config = ''
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
|
|
@ -6,6 +6,12 @@ fetchpatch: [
|
||||||
sha256 = "sha256-OczjlQcG7sTM/V9Y9VL/qdwaWPKfjAJsh3czqqhRQig=";
|
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
|
# # kaiteki: init at 2022-09-03
|
||||||
# vendorHash changes too frequently (might not be reproducible).
|
# vendorHash changes too frequently (might not be reproducible).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user