feat: set default highlights (#135)

This commit is contained in:
JINNOUCHI Yasushi 2023-08-25 23:17:04 +09:00 committed by GitHub
parent 2e9cbda5cf
commit e7825aaf57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,11 @@ end
---@return nil
function Frecency:setup()
vim.api.nvim_set_hl(0, "TelescopeBufferLoaded", { link = "Todo", default = true })
vim.api.nvim_set_hl(0, "TelescopePathSeparator", { link = "Directory", default = true })
vim.api.nvim_set_hl(0, "TelescopeFrecencyScores", { link = "Number", default = true })
vim.api.nvim_set_hl(0, "TelescopeQueryFilter", { link = "WildMenu", default = true })
-- TODO: Should we schedule this after loading shada?
if not self.database:has_entry() then
self.database:insert_files(vim.v.oldfiles)