This commit is contained in:
2026-09-19 20:56:43 +01:00
parent 19e49e90f5
commit 84bd80f82a
7 changed files with 237 additions and 106 deletions
+14 -2
View File
@@ -42,6 +42,17 @@
# nvim-cmp on rtp during the require check (cmp_lsp_rs requires cmp.types.lsp at load time)
dependencies = [ pkgs.vimPlugins.nvim-cmp ];
};
treesitter-rhai-grammar = pkgs.tree-sitter.buildGrammar {
language = "rhai";
version = "0.0.0+rev=4ac7384";
src = pkgs.fetchFromGitHub {
owner = "elkowar";
repo = "tree-sitter-rhai";
rev = "4ac7384d487ffcb54e746ef1569585a749370c5b";
hash = "sha256-XGGcEGHke/O00STKqwSk9jGj91Xm2LE2KxwwX5+bBg0=";
};
meta.homepage = "https://github.com/elkowar/tree-sitter-rhai";
};
in
{
imports = [
@@ -298,7 +309,7 @@
wakatime.enable = true;
treesitter = {
enable = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
grammarPackages = (with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
bash
css
html
@@ -318,7 +329,7 @@
xml
yaml
svelte
];
]) ++ [ treesitter-rhai-grammar ];
settings = {
highlight.enable = true;
indent.enable = false;
@@ -328,6 +339,7 @@
extraPlugins = with pkgs; [
tiny-code-action
cmp-lsp-rs
treesitter-rhai-grammar
];
opts = {
number = true;