feat: Add ability to turn off devicon colors

This commit is contained in:
TJ DeVries
2020-10-25 08:19:09 -04:00
parent 477261e5c0
commit 113a516c63
3 changed files with 8 additions and 2 deletions

View File

@@ -803,9 +803,9 @@ function Picker:entry_adder(index, entry, score)
return
end
local set_ok = pcall(vim.api.nvim_buf_set_lines, self.results_bufnr, row, row + 1, false, {display})
if set_ok and display_highlights then
-- TODO: This should actually be done during the cursor moving stuff annoyingly.... didn't see this bug yesterday.
for _, hl_block in ipairs(display_highlights) do
a.nvim_buf_add_highlight(self.results_bufnr, ns_telescope_entry, hl_block[2], row, #prefix + hl_block[1][1], #prefix + hl_block[1][2])
end