mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 20:10:05 +08:00
fix(zettelkasten): fix title backgroup color
This commit is contained in:
parent
8494b505a9
commit
bf643b2463
@ -472,14 +472,14 @@ EOT
|
|||||||
_detact_bundle vim-zettelkasten lua/telescope/_extensions/zettelkasten_template.lua
|
_detact_bundle vim-zettelkasten lua/telescope/_extensions/zettelkasten_template.lua
|
||||||
_detact_bundle vim-zettelkasten lua/telescope/_extensions/zettelkasten.lua
|
_detact_bundle vim-zettelkasten lua/telescope/_extensions/zettelkasten.lua
|
||||||
# detach spacevim core files
|
# detach spacevim core files
|
||||||
_checkdir lua/spacevim
|
_checkdir lua/spacevim/api/vim
|
||||||
_checkdir lua/spacevim/api
|
|
||||||
_detact lua/spacevim.lua
|
_detact lua/spacevim.lua
|
||||||
_detact lua/spacevim/logger.lua
|
_detact lua/spacevim/logger.lua
|
||||||
_detact lua/spacevim/api.lua
|
_detact lua/spacevim/api.lua
|
||||||
_detact lua/spacevim/api/logger.lua
|
_detact lua/spacevim/api/logger.lua
|
||||||
_detact lua/spacevim/api/notify.lua
|
_detact lua/spacevim/api/notify.lua
|
||||||
_detact lua/spacevim/api/password.lua
|
_detact lua/spacevim/api/password.lua
|
||||||
|
_detact lua/spacevim/api/vim/highlight.lua
|
||||||
_checkdir autoload/SpaceVim/api
|
_checkdir autoload/SpaceVim/api
|
||||||
_checkdir autoload/SpaceVim/api/neovim
|
_checkdir autoload/SpaceVim/api/neovim
|
||||||
_checkdir autoload/SpaceVim/api/vim
|
_checkdir autoload/SpaceVim/api/vim
|
||||||
|
@ -5,7 +5,7 @@ local entry_display = require('telescope.pickers.entry_display')
|
|||||||
local finders = require('telescope.finders')
|
local finders = require('telescope.finders')
|
||||||
local pickers = require('telescope.pickers')
|
local pickers = require('telescope.pickers')
|
||||||
local browser = require('zettelkasten.browser')
|
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 function get_all_zettelkasten_notes()
|
||||||
local p = {}
|
local p = {}
|
||||||
@ -39,10 +39,12 @@ local function show_changes(opts)
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
local function make_display(entry)
|
local function make_display(entry)
|
||||||
-- print(vim.inspect(entry))
|
local normal = hi.group2dict('Normal')
|
||||||
|
hi.hi({
|
||||||
|
name = 'NormalFG', guifg = normal.guifg})
|
||||||
return displayer({
|
return displayer({
|
||||||
{ vim.fn.fnamemodify(entry.value.file_name, ':t'), 'String' },
|
{ vim.fn.fnamemodify(entry.value.file_name, ':t'), 'String' },
|
||||||
{ entry.value.title, 'Normal' },
|
{ entry.value.title, 'NormalFG' },
|
||||||
{
|
{
|
||||||
concat_tags(entry.value.tags),
|
concat_tags(entry.value.tags),
|
||||||
'Tag',
|
'Tag',
|
||||||
|
Loading…
Reference in New Issue
Block a user