From e5d16e44889344736d7c546891038c8803c2fefe Mon Sep 17 00:00:00 2001 From: ray-x Date: Mon, 18 Jul 2022 07:45:23 +1000 Subject: [PATCH] renaming highight group from GHxxx to Guihuaxxx --- README.md | 10 +++++----- doc/navigator.txt | 10 +++++----- lua/navigator/ctags.lua | 2 +- lua/navigator/workspace.lua | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4a2bd6a..a6e6835 100644 --- a/README.md +++ b/README.md @@ -477,14 +477,14 @@ In `playground` folder, there is a `init.lua` and source code for you to play wi ### Colors/Highlight: -You can override default highlight GHListDark (listview) and GHTextViewDark (code view) and GHListHl (select item) +You can override default highlight GuihuaListDark (listview) and GuihuaTextViewDark (code view) and GuihuaListHl (select item) e.g. ```vim -hi default GHTextViewDark guifg=#e0d8f4 guibg=#332e55 -hi default GHListDark guifg=#e0d8f4 guibg=#103234 -hi default GHListHl guifg=#e0d8f4 guibg=#404254 +hi default GuihuaTextViewDark guifg=#e0d8f4 guibg=#332e55 +hi default GuihuaListDark guifg=#e0d8f4 guibg=#103234 +hi default GuihuaListHl guifg=#e0d8f4 guibg=#404254 ``` There are other Lsp highlight been used in this plugin, e.g LspReferenceRead/Text/Write are used for document highlight, @@ -667,7 +667,7 @@ Highlight I am using: - LspReferenceRead, LspReferenceText and LspReferenceWrite are used for `autocmd CursorHold lua vim.lsp.buf.document_highlight()` That is where you saw the current symbol been highlighted. -- GHListDark and GHTextViewDark is used for floating listvew and TextView. They are be based on current background +- GuihuaListDark and GuihuaTextViewDark is used for floating listvew and TextView. They are be based on current background (Normal) and PmenuSel - In future, I will use NormalFloat for floating view. But ATM, most of colorscheme does not define NormalFloat diff --git a/doc/navigator.txt b/doc/navigator.txt index 60e1661..1a80271 100644 --- a/doc/navigator.txt +++ b/doc/navigator.txt @@ -477,13 +477,13 @@ DEFAULT KEYMAPS *navigator-default_keymap COLORS/HIGHLIGHT: *navigator-colors/highlight:* -You can override default highlight GHListDark (listview) and GHTextViewDark (code view) and GHListHl (select item) +You can override default highlight GuihuaListDark (listview) and GuihuaTextViewDark (code view) and GuihuaListHl (select item) e.g. > - hi default GHTextViewDark guifg=#e0d8f4 guibg=#332e55 - hi default GHListDark guifg=#e0d8f4 guibg=#103234 - hi default GHListHl guifg=#e0d8f4 guibg=#404254 + hi default GuihuaTextViewDark guifg=#e0d8f4 guibg=#332e55 + hi default GuihuaListDark guifg=#e0d8f4 guibg=#103234 + hi default GuihuaListHl guifg=#e0d8f4 guibg=#404254 < There are other Lsp highlight been used in this plugin, e.g LspReferenceRead/Text/Write are used for document highlight, @@ -644,7 +644,7 @@ Highlight I am using: * LspReferenceRead, LspReferenceText and LspReferenceWrite are used for `autocmd CursorHold lua vim.lsp.buf.document_highlight()` That is where you saw the current symbol been highlighted. -* GHListDark and GHTextViewDark is used for floating listvew and TextView. They are be based on current background +* GuihuaListDark and GuihuaTextViewDark is used for floating listvew and TextView. They are be based on current background (Normal) and PmenuSel * In future, I will use NormalFloat for floating view. But ATM, most of colorscheme does not define NormalFloat diff --git a/lua/navigator/ctags.lua b/lua/navigator/ctags.lua index fc7f427..eb4eb23 100644 --- a/lua/navigator/ctags.lua +++ b/lua/navigator/ctags.lua @@ -118,7 +118,7 @@ local function ctags_symbols() local opt = { api = ' ', ft = ft, - bg = 'GHListDark', + bg = 'GuihuaListDark', data = result, items = result, enter = true, diff --git a/lua/navigator/workspace.lua b/lua/navigator/workspace.lua index ca483f7..fcfe68f 100644 --- a/lua/navigator/workspace.lua +++ b/lua/navigator/workspace.lua @@ -47,7 +47,7 @@ function M.workspace_symbol_live() local ListView = require('guihua.listview') local opt = { api = ' ', - bg = 'GHListDark', + bg = 'GuihuaListDark', data = data, items = data, enter = true,