mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-04 20:21:11 +00:00
move tree-sitter packages out of flake
This commit is contained in:
parent
6802c4de2f
commit
a611b0ab69
122
flake.lock
generated
122
flake.lock
generated
@ -371,13 +371,6 @@
|
|||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"tree-sitter-bash": "tree-sitter-bash",
|
|
||||||
"tree-sitter-ini": "tree-sitter-ini",
|
|
||||||
"tree-sitter-lua": "tree-sitter-lua",
|
|
||||||
"tree-sitter-puppet": "tree-sitter-puppet",
|
|
||||||
"tree-sitter-python": "tree-sitter-python",
|
|
||||||
"tree-sitter-rasi": "tree-sitter-rasi",
|
|
||||||
"tree-sitter-vimdoc": "tree-sitter-vimdoc",
|
|
||||||
"wsl": "wsl",
|
"wsl": "wsl",
|
||||||
"zenyd-mpv-scripts": "zenyd-mpv-scripts"
|
"zenyd-mpv-scripts": "zenyd-mpv-scripts"
|
||||||
}
|
}
|
||||||
@ -412,121 +405,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tree-sitter-bash": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1738310128,
|
|
||||||
"narHash": "sha256-ODWgFpCLLPgzNYXFhfAVvDXPr5bW8/49ezsaS9MOWMk=",
|
|
||||||
"owner": "tree-sitter",
|
|
||||||
"repo": "tree-sitter-bash",
|
|
||||||
"rev": "0c46d792d54c536be5ff7eb18eb95c70fccdb232",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "tree-sitter",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": "tree-sitter-bash",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tree-sitter-ini": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1741697356,
|
|
||||||
"narHash": "sha256-kWCaOIC81GP5EHCqzPZP9EUgYy39CZ6/8TVS6soB6Wo=",
|
|
||||||
"owner": "justinmk",
|
|
||||||
"repo": "tree-sitter-ini",
|
|
||||||
"rev": "32b31863f222bf22eb43b07d4e9be8017e36fb31",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "justinmk",
|
|
||||||
"repo": "tree-sitter-ini",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tree-sitter-lua": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1738303275,
|
|
||||||
"narHash": "sha256-mE84uI5AKbLvX5CM7NvA59Z8Ux+QFdqVjZf4hi06NAM=",
|
|
||||||
"owner": "MunifTanjim",
|
|
||||||
"repo": "tree-sitter-lua",
|
|
||||||
"rev": "68d29aa745b68ae22cbbdb5dcb68c20232521ff6",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "MunifTanjim",
|
|
||||||
"ref": "main",
|
|
||||||
"repo": "tree-sitter-lua",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tree-sitter-puppet": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1734835631,
|
|
||||||
"narHash": "sha256-bO5g5AdhzpB13yHklpAndUHIX7Rvd7OMjH0Ds2ATA6Q=",
|
|
||||||
"owner": "amaanq",
|
|
||||||
"repo": "tree-sitter-puppet",
|
|
||||||
"rev": "15f192929b7d317f5914de2b4accd37b349182a6",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "amaanq",
|
|
||||||
"repo": "tree-sitter-puppet",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tree-sitter-python": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1738275152,
|
|
||||||
"narHash": "sha256-t9etfZcrliF7f9hfiomh2U9P+3ufAm8iSK1y9rOhP7s=",
|
|
||||||
"owner": "tree-sitter",
|
|
||||||
"repo": "tree-sitter-python",
|
|
||||||
"rev": "710796b8b877a970297106e5bbc8e2afa47f86ec",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "tree-sitter",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": "tree-sitter-python",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tree-sitter-rasi": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1716296585,
|
|
||||||
"narHash": "sha256-sPrIVgGGaBaXeqHNxjcdJ/S2FvxyV6rD9UPKU/tpspw=",
|
|
||||||
"owner": "Fymyte",
|
|
||||||
"repo": "tree-sitter-rasi",
|
|
||||||
"rev": "6c9bbcfdf5f0f553d9ebc01750a3aa247a37b8aa",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Fymyte",
|
|
||||||
"repo": "tree-sitter-rasi",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tree-sitter-vimdoc": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1729686839,
|
|
||||||
"narHash": "sha256-Vrl4/cZL+TWlUMEeWZoHCAWhvlefcl3ajGcwyTNKOhI=",
|
|
||||||
"owner": "neovim",
|
|
||||||
"repo": "tree-sitter-vimdoc",
|
|
||||||
"rev": "d2e4b5c172a109966c2ce0378f73df6cede39400",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "neovim",
|
|
||||||
"repo": "tree-sitter-vimdoc",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
111
flake.nix
111
flake.nix
@ -34,12 +34,6 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Use official Firefox binary for macOS
|
|
||||||
# firefox-darwin = {
|
|
||||||
# url = "github:bandithedoge/nixpkgs-firefox-darwin";
|
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Better App install management in macOS
|
# Better App install management in macOS
|
||||||
mac-app-util = {
|
mac-app-util = {
|
||||||
url = "github:hraban/mac-app-util";
|
url = "github:hraban/mac-app-util";
|
||||||
@ -52,12 +46,6 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Wallpapers
|
|
||||||
# wallpapers = {
|
|
||||||
# url = "gitlab:exorcist365/wallpapers";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Used to generate NixOS images for other platforms
|
# Used to generate NixOS images for other platforms
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
@ -70,104 +58,35 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Neovim plugins
|
# # Tree-Sitter Grammars
|
||||||
# base16-nvim-src = {
|
# tree-sitter-bash = {
|
||||||
# url = "github:RRethy/base16-nvim";
|
# url = "github:tree-sitter/tree-sitter-bash/master";
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# nvim-lspconfig-src = {
|
# tree-sitter-python = {
|
||||||
# # https://github.com/neovim/nvim-lspconfig/tags
|
# url = "github:tree-sitter/tree-sitter-python/master";
|
||||||
# url = "github:neovim/nvim-lspconfig/v0.1.8";
|
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# cmp-nvim-lsp-src = {
|
# tree-sitter-lua = {
|
||||||
# url = "github:hrsh7th/cmp-nvim-lsp";
|
# url = "github:MunifTanjim/tree-sitter-lua/main";
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# baleia-nvim-src = {
|
# tree-sitter-ini = {
|
||||||
# # https://github.com/m00qek/baleia.nvim/tags
|
# url = "github:justinmk/tree-sitter-ini";
|
||||||
# url = "github:m00qek/baleia.nvim";
|
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# nvim-treesitter-src = {
|
# tree-sitter-puppet = {
|
||||||
# # https://github.com/nvim-treesitter/nvim-treesitter/tags
|
# url = "github:amaanq/tree-sitter-puppet";
|
||||||
# url = "github:nvim-treesitter/nvim-treesitter/v0.9.2";
|
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# telescope-nvim-src = {
|
# tree-sitter-rasi = {
|
||||||
# # https://github.com/nvim-telescope/telescope.nvim/releases
|
# url = "github:Fymyte/tree-sitter-rasi";
|
||||||
# url = "github:nvim-telescope/telescope.nvim/0.1.8";
|
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# telescope-project-nvim-src = {
|
# tree-sitter-vimdoc = {
|
||||||
# url = "github:nvim-telescope/telescope-project.nvim";
|
# url = "github:neovim/tree-sitter-vimdoc";
|
||||||
# flake = false;
|
# flake = false;
|
||||||
# };
|
# };
|
||||||
# toggleterm-nvim-src = {
|
|
||||||
# # https://github.com/akinsho/toggleterm.nvim/tags
|
|
||||||
# url = "github:akinsho/toggleterm.nvim/v2.12.0";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# bufferline-nvim-src = {
|
|
||||||
# # https://github.com/akinsho/bufferline.nvim/releases
|
|
||||||
# url = "github:akinsho/bufferline.nvim/v4.6.1";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# nvim-tree-lua-src = {
|
|
||||||
# url = "github:kyazdani42/nvim-tree.lua";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# hmts-nvim-src = {
|
|
||||||
# url = "github:calops/hmts.nvim";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# fidget-nvim-src = {
|
|
||||||
# # https://github.com/j-hui/fidget.nvim/tags
|
|
||||||
# url = "github:j-hui/fidget.nvim/v1.4.5";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# nvim-lint-src = {
|
|
||||||
# url = "github:mfussenegger/nvim-lint";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# tiny-inline-diagnostic-nvim-src = {
|
|
||||||
# url = "github:rachartier/tiny-inline-diagnostic.nvim";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
# snipe-nvim-src = {
|
|
||||||
# url = "github:leath-dub/snipe.nvim";
|
|
||||||
# flake = false;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Tree-Sitter Grammars
|
|
||||||
tree-sitter-bash = {
|
|
||||||
url = "github:tree-sitter/tree-sitter-bash/master";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
tree-sitter-python = {
|
|
||||||
url = "github:tree-sitter/tree-sitter-python/master";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
tree-sitter-lua = {
|
|
||||||
url = "github:MunifTanjim/tree-sitter-lua/main";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
tree-sitter-ini = {
|
|
||||||
url = "github:justinmk/tree-sitter-ini";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
tree-sitter-puppet = {
|
|
||||||
url = "github:amaanq/tree-sitter-puppet";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
tree-sitter-rasi = {
|
|
||||||
url = "github:Fymyte/tree-sitter-rasi";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
tree-sitter-vimdoc = {
|
|
||||||
url = "github:neovim/tree-sitter-vimdoc";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# MPV Scripts
|
# MPV Scripts
|
||||||
zenyd-mpv-scripts = {
|
zenyd-mpv-scripts = {
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
inputs: _final: prev: {
|
|
||||||
tree-sitter-grammars = prev.tree-sitter-grammars // {
|
|
||||||
|
|
||||||
# Fix: bash highlighting doesn't work as of this commit:
|
|
||||||
# https://github.com/NixOS/nixpkgs/commit/49cce41b7c5f6b88570a482355d9655ca19c1029
|
|
||||||
tree-sitter-bash = prev.tree-sitter-grammars.tree-sitter-bash.overrideAttrs (old: {
|
|
||||||
src = inputs.tree-sitter-bash;
|
|
||||||
});
|
|
||||||
|
|
||||||
# Fix: invalid node in position. Broken as of this commit (replaced with newer):
|
|
||||||
# https://github.com/NixOS/nixpkgs/commit/8ec3627796ecc899e6f47f5bf3c3220856ead9c5
|
|
||||||
tree-sitter-python = prev.tree-sitter-grammars.tree-sitter-python.overrideAttrs (old: {
|
|
||||||
src = inputs.tree-sitter-python;
|
|
||||||
});
|
|
||||||
|
|
||||||
# Fix: invalid structure in position.
|
|
||||||
tree-sitter-lua = prev.tree-sitter-grammars.tree-sitter-lua.overrideAttrs (old: {
|
|
||||||
src = inputs.tree-sitter-lua;
|
|
||||||
});
|
|
||||||
|
|
||||||
# Add grammars not in nixpks
|
|
||||||
tree-sitter-ini = prev.tree-sitter.buildGrammar {
|
|
||||||
language = "ini";
|
|
||||||
version = "1.0.0";
|
|
||||||
src = inputs.tree-sitter-ini;
|
|
||||||
};
|
|
||||||
tree-sitter-puppet = prev.tree-sitter.buildGrammar {
|
|
||||||
language = "puppet";
|
|
||||||
version = "1.0.0";
|
|
||||||
src = inputs.tree-sitter-puppet;
|
|
||||||
};
|
|
||||||
tree-sitter-rasi = prev.tree-sitter.buildGrammar {
|
|
||||||
language = "rasi";
|
|
||||||
version = "0.1.1";
|
|
||||||
src = inputs.tree-sitter-rasi;
|
|
||||||
};
|
|
||||||
tree-sitter-vimdoc = prev.tree-sitter.buildGrammar {
|
|
||||||
language = "vimdoc";
|
|
||||||
version = "2.1.0";
|
|
||||||
src = inputs.tree-sitter-vimdoc;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -2,26 +2,24 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
(pkgs.vimPlugins.nvim-treesitter.withPlugins (
|
(pkgs.vimPlugins.nvim-treesitter.withPlugins (_plugins: [
|
||||||
_plugins: with pkgs.tree-sitter-grammars; [
|
pkgs.nmasur.ini-grammar
|
||||||
tree-sitter-bash
|
pkgs.nmasur.puppet-grammar
|
||||||
tree-sitter-c
|
pkgs.nmasur.rasi-grammar
|
||||||
tree-sitter-fish
|
pkgs.nmasur.vimdoc-grammar
|
||||||
tree-sitter-hcl
|
pkgs.tree-sitter-grammars.tree-sitter-bash
|
||||||
tree-sitter-ini
|
pkgs.tree-sitter-grammars.tree-sitter-c
|
||||||
tree-sitter-json
|
pkgs.tree-sitter-grammars.tree-sitter-fish
|
||||||
tree-sitter-lua
|
pkgs.tree-sitter-grammars.tree-sitter-hcl
|
||||||
tree-sitter-markdown
|
pkgs.tree-sitter-grammars.tree-sitter-json
|
||||||
tree-sitter-markdown-inline
|
pkgs.tree-sitter-grammars.tree-sitter-lua
|
||||||
tree-sitter-nix
|
pkgs.tree-sitter-grammars.tree-sitter-markdown
|
||||||
tree-sitter-puppet
|
pkgs.tree-sitter-grammars.tree-sitter-markdown-inline
|
||||||
tree-sitter-python
|
pkgs.tree-sitter-grammars.tree-sitter-nix
|
||||||
tree-sitter-rasi
|
pkgs.tree-sitter-grammars.tree-sitter-python
|
||||||
tree-sitter-toml
|
pkgs.tree-sitter-grammars.tree-sitter-toml
|
||||||
tree-sitter-vimdoc
|
pkgs.tree-sitter-grammars.tree-sitter-yaml
|
||||||
tree-sitter-yaml
|
]))
|
||||||
]
|
|
||||||
))
|
|
||||||
pkgs.vimPlugins.vim-matchup # Better % jumping in languages
|
pkgs.vimPlugins.vim-matchup # Better % jumping in languages
|
||||||
pkgs.vimPlugins.playground # Tree-sitter experimenting
|
pkgs.vimPlugins.playground # Tree-sitter experimenting
|
||||||
pkgs.vimPlugins.nginx-vim
|
pkgs.vimPlugins.nginx-vim
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, fetchFromGitHub }:
|
||||||
|
|
||||||
|
pkgs.tree-sitter.buildGrammar {
|
||||||
|
language = "ini";
|
||||||
|
version = "1.3.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "justinmk";
|
||||||
|
repo = "tree-sitter-ini";
|
||||||
|
rev = "32b31863f222bf22eb43b07d4e9be8017e36fb31";
|
||||||
|
sha256 = "sha256-kWCaOIC81GP5EHCqzPZP9EUgYy39CZ6/8TVS6soB6Wo=";
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, fetchFromGitHub }:
|
||||||
|
|
||||||
|
pkgs.tree-sitter.buildGrammar {
|
||||||
|
language = "puppet";
|
||||||
|
version = "1.3.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "tree-sitter-grammars";
|
||||||
|
repo = "tree-sitter-puppet";
|
||||||
|
rev = "15f192929b7d317f5914de2b4accd37b349182a6";
|
||||||
|
sha256 = "sha256-bO5g5AdhzpB13yHklpAndUHIX7Rvd7OMjH0Ds2ATA6Q=";
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, fetchFromGitHub }:
|
||||||
|
|
||||||
|
pkgs.tree-sitter.buildGrammar {
|
||||||
|
language = "rasi";
|
||||||
|
version = "0.1.2";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Fymyte";
|
||||||
|
repo = "tree-sitter-rasi";
|
||||||
|
rev = "6c9bbcfdf5f0f553d9ebc01750a3aa247a37b8aa";
|
||||||
|
sha256 = "sha256-sPrIVgGGaBaXeqHNxjcdJ/S2FvxyV6rD9UPKU/tpspw=";
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, fetchFromGitHub }:
|
||||||
|
|
||||||
|
pkgs.tree-sitter.buildGrammar {
|
||||||
|
language = "vimdoc";
|
||||||
|
version = "3.0.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "neovim";
|
||||||
|
repo = "tree-sitter-vimdoc";
|
||||||
|
rev = "d2e4b5c172a109966c2ce0378f73df6cede39400";
|
||||||
|
sha256 = "sha256-Vrl4/cZL+TWlUMEeWZoHCAWhvlefcl3ajGcwyTNKOhI=";
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user