compile all grammars for nvim-treesitter

This commit is contained in:
Noah Masur 2023-03-24 16:20:41 -04:00
parent b06b6490f4
commit f9c09deb2a
3 changed files with 6 additions and 15 deletions

7
flake.lock generated
View File

@ -397,15 +397,16 @@
"nvim-treesitter-src": {
"flake": false,
"locked": {
"lastModified": 1679482116,
"narHash": "sha256-SofmIKv/zGsocOBEbmzOraTE0GuLDjrJB2gZhKCz8ok=",
"lastModified": 1677248832,
"narHash": "sha256-4TmtrufxjVpnSNfFpn6GQStEhq3KQb3JfmfMEJnSI8k=",
"owner": "nvim-treesitter",
"repo": "nvim-treesitter",
"rev": "dbdbd71b41a3627e0f2784eff746ad4366e2a21c",
"rev": "b401b7423d18c78371c5ff1a5f8d3c14292b2047",
"type": "github"
},
"original": {
"owner": "nvim-treesitter",
"ref": "v0.8.5.2",
"repo": "nvim-treesitter",
"type": "github"
}

View File

@ -74,7 +74,7 @@
flake = false;
};
nvim-treesitter-src = {
url = "github:nvim-treesitter/nvim-treesitter";
url = "github:nvim-treesitter/nvim-treesitter/v0.8.5.2";
flake = false;
};
telescope-nvim-src = {

View File

@ -1,17 +1,7 @@
{ pkgs, ... }: {
plugins = [
(pkgs.vimPlugins.nvim-treesitter.withPlugins (_plugins:
with pkgs.tree-sitter-grammars; [
tree-sitter-hcl
tree-sitter-python
tree-sitter-lua
tree-sitter-nix
tree-sitter-fish
tree-sitter-toml
tree-sitter-yaml
tree-sitter-json
]))
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
pkgs.vimPlugins.vim-matchup # Better % jumping in languages
pkgs.vimPlugins.nginx-vim
pkgs.vimPlugins.vim-helm