snowflake/home/programs/editors/neovim/plugins/editor/treesitter.nix

37 lines
821 B
Nix
Raw Normal View History

2024-12-11 15:54:43 -05:00
{pkgs, ...}: let
treesitter-nu-grammar = pkgs.tree-sitter.buildGrammar {
language = "nu";
version = "0.0.0+rev=1561a94";
src = pkgs.fetchFromGitHub {
owner = "nushell";
repo = "tree-sitter-nu";
rev = "1561a947a5505d373e11ca337898e048ac2e389e";
hash = "sha256-RAAMBVov4q8b8MJZVlf1qwbLK8hE5AxPK1IV9TMCrTs=";
};
meta.homepage = "https://github.com/nushell/tree-sitter-nu";
};
in {
2024-10-28 19:30:48 -04:00
programs.nixvim.plugins.treesitter = {
enable = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
bash
json
lua
markdown
nix
regex
toml
xml
yaml
2024-11-01 07:21:24 -04:00
rust
go
gomod
2024-12-11 15:54:43 -05:00
treesitter-nu-grammar
2024-10-28 19:30:48 -04:00
];
2024-11-01 07:21:24 -04:00
settings = {
highlight.enable = true;
indent.enable = false;
};
2024-10-28 19:30:48 -04:00
};
}