Skip to content

Commit

Permalink
feat: neovim comment highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
s3igo committed Mar 31, 2024
1 parent 67497af commit 9121fb7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
im-select
nix
lua
markdown
];
};
full = withModules {
Expand Down
16 changes: 11 additions & 5 deletions neovim/config/plugins/treesitter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
if grammars == "all" then
allGrammars
else
map (name: builtGrammars.${name}) (grammars ++ [ "vimdoc" ]);
map (name: builtGrammars.${name}) (
[
"vimdoc"
"comment"
]
++ grammars
);
# folding = true;
indent = true;
incrementalSelection = {
Expand Down Expand Up @@ -148,9 +154,9 @@
};

highlight = {
"@text.todo".link = "NightflyBlueMode";
"@text.note".link = "NightflyPurpleMode";
"@text.warning".link = "NightflyTanMode";
"@text.danger".link = "NightflyWatermelonMode";
"@comment.todo.comment".link = "NightflyBlueMode";
"@comment.note.comment".link = "NightflyPurpleMode";
"@comment.warning.comment".link = "NightflyTanMode";
"@comment.danger.comment".link = "NightflyWatermelonMode";
};
}
4 changes: 4 additions & 0 deletions neovim/modules/markdown.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
regex
];
};

highlight = {
"@markup.list.checked.markdown".link = "NightflyTurquoiseMode";
};
}

0 comments on commit 9121fb7

Please sign in to comment.