From 113a516c63fb6e1ae1fb01173ed8fefdf450b08a Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Sun, 25 Oct 2020 08:19:09 -0400 Subject: feat: Add ability to turn off devicon colors --- lua/telescope/pickers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/telescope/pickers.lua') diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index e77e0e9..442b4df 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -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 -- cgit v1.2.3