From a7c1158b59fef612171986a35116ccfd69676651 Mon Sep 17 00:00:00 2001 From: wadackel Date: Mon, 5 Feb 2024 15:38:18 +0900 Subject: [PATCH] feat: update nvim-tree syntax highlight --- generator/src/highlight.rs | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/generator/src/highlight.rs b/generator/src/highlight.rs index 797ef56..2ef3657 100644 --- a/generator/src/highlight.rs +++ b/generator/src/highlight.rs @@ -402,6 +402,7 @@ pub fn get_highlights() -> Vec { hi!("@string", green, -, -, -, Nvim080OrLater), hi!("@string.regex", green, -, -, -, Nvim080OrLater), hi!("@string.escape", pink, -, -, -, Nvim080OrLater), + hi!("@string.special.url", lightfg, -, -, -, Nvim080OrLater), hi!("@text.title", yellow, -, -, Bold, Nvim080OrLater), hi!("@text.reference", purple, -, -, -, Nvim080OrLater), hi!("@text.uri", weakfg, -, -, -, Nvim080OrLater), @@ -420,6 +421,13 @@ pub fn get_highlights() -> Vec { hi!("@tag", mainfg, -, -, -, Nvim080OrLater), hi!("@tag.delimiter", purple, -, -, -, Nvim080OrLater), hi!("@tag.attribute", purple, -, -, -, Nvim080OrLater), + hi!("@markup.heading", yellow, -, -, Bold, Nvim080OrLater), + hi!("@markup.strong", -, -, -, Bold, Nvim080OrLater), + hi!("@markup.list", weakfg, -, -, -, Nvim080OrLater), + hi!("@markup.raw", teal, -, -, -, Nvim080OrLater), + hi!("@markup.link", purple, -, -, -, Nvim080OrLater), + hi!("@markup.link.url", lightfg, -, -, -, Nvim080OrLater), + hi!("@markup.quote", weakfg, -, -, -, Nvim080OrLater), // LSP Semantic highlights hi!("@lsp.type.class", mainfg, -, -, -, Nvim080OrLater), hi!("@lsp.type.interface", orange, -, -, -, Nvim080OrLater), @@ -553,22 +561,22 @@ pub fn get_highlights() -> Vec { hi!("NvimTreeEmptyFolderName", weakfg, -, -, None, -), hi!("NvimTreeOpenedFolderName", purple, -, -, None, -), hi!("NvimTreeExecFile", lightfg, -, -, None, -), - hi!("NvimTreeOpenedFile", lightfg, -, -, None, -), + hi!("NvimTreeOpenedHL", lightfg, -, -, None, -), hi!("NvimTreeSpecialFile", lightfg, -, -, Bold, -), hi!("NvimTreeImageFile", lightfg, -, -, None, -), hi!("NvimTreeIndentMarker", darkestpurple, -, -, None, -), - hi!("NvimTreeModifiedFile", mainfg, -, -, None, -), - hi!("NvimTreeGitDirty", yellow, -, -, None, -), - hi!("NvimTreeGitStaged", green, -, -, None, -), - hi!("NvimTreeGitMerge", yellow, -, -, None, -), - hi!("NvimTreeGitRenamed", yellow, -, -, None, -), - hi!("NvimTreeGitNew", teal, -, -, None, -), - hi!("NvimTreeGitDeleted", difftextbg, -, -, None, -), + hi!("NvimTreeModifiedIcon", mainfg, -, -, None, -), + hi!("NvimTreeGitDirtyIcon", yellow, -, -, None, -), + hi!("NvimTreeGitStagedIcon", green, -, -, None, -), + hi!("NvimTreeGitMergeIcon", yellow, -, -, None, -), + hi!("NvimTreeGitRenamedIcon", yellow, -, -, None, -), + hi!("NvimTreeGitNewIcon", teal, -, -, None, -), + hi!("NvimTreeGitDeletedIcon", difftextbg, -, -, None, -), hi!("NvimTreeWindowPicker", tablineselfg, tablineselbg, -, Bold, -), hi!("NvimTreeNormal", lightfg, -, -, None, -), hi!("NvimTreeLiveFilterPrefix", darkteal, -, -, None, -), hi!("NvimTreeLiveFilterValue", teal, -, -, None, -), - hi!("NvimTreeBookmark", yellow, -, -, None, -), + hi!("NvimTreeBookmarkIcon", yellow, -, -, None, -), // fern.vim // https://github.com/lambdalisue/fern.vim hi!("FernBranchSymbol", darkpurple, -, -, None, -),