1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:00:04 +08:00

fix(zettelkasten): fix title backgroup color

This commit is contained in:
Eric Wong 2024-12-24 09:22:36 +08:00
parent 8494b505a9
commit bf643b2463
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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',