diff --git a/.ci/detach_plugin.sh b/.ci/detach_plugin.sh index f92121a22..e63d43aa1 100755 --- a/.ci/detach_plugin.sh +++ b/.ci/detach_plugin.sh @@ -472,14 +472,14 @@ EOT _detact_bundle vim-zettelkasten lua/telescope/_extensions/zettelkasten_template.lua _detact_bundle vim-zettelkasten lua/telescope/_extensions/zettelkasten.lua # detach spacevim core files - _checkdir lua/spacevim - _checkdir lua/spacevim/api + _checkdir lua/spacevim/api/vim _detact lua/spacevim.lua _detact lua/spacevim/logger.lua _detact lua/spacevim/api.lua _detact lua/spacevim/api/logger.lua _detact lua/spacevim/api/notify.lua _detact lua/spacevim/api/password.lua + _detact lua/spacevim/api/vim/highlight.lua _checkdir autoload/SpaceVim/api _checkdir autoload/SpaceVim/api/neovim _checkdir autoload/SpaceVim/api/vim diff --git a/bundle/vim-zettelkasten/lua/telescope/_extensions/zettelkasten.lua b/bundle/vim-zettelkasten/lua/telescope/_extensions/zettelkasten.lua index 889e3f4db..511b784fe 100644 --- a/bundle/vim-zettelkasten/lua/telescope/_extensions/zettelkasten.lua +++ b/bundle/vim-zettelkasten/lua/telescope/_extensions/zettelkasten.lua @@ -5,7 +5,7 @@ local entry_display = require('telescope.pickers.entry_display') local finders = require('telescope.finders') local pickers = require('telescope.pickers') local browser = require('zettelkasten.browser') -local file = require('spacevim.api.file') +local hi = require('spacevim.api.vim.highlight') local function get_all_zettelkasten_notes() local p = {} @@ -39,10 +39,12 @@ local function show_changes(opts) }, }) local function make_display(entry) - -- print(vim.inspect(entry)) + local normal = hi.group2dict('Normal') + hi.hi({ + name = 'NormalFG', guifg = normal.guifg}) return displayer({ { vim.fn.fnamemodify(entry.value.file_name, ':t'), 'String' }, - { entry.value.title, 'Normal' }, + { entry.value.title, 'NormalFG' }, { concat_tags(entry.value.tags), 'Tag',