This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local conv = {} | |
local color_cache = {} | |
-- gen_hl_groups is inspired by: https://github.com/norcalli/nvim-terminal.lua | |
local gen_hl_groups = function() | |
local color_table = {} | |
if not vim.o.termguicolors then | |
-- https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit | |
local rgb_to_hex = function(r, g, b) return ("#%02X%02X%02X"):format(r,g,b) end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local finders = require('telescope.finders') | |
local make_entry = require('telescope.make_entry') | |
local pickers = require('telescope.pickers') | |
local conf = require('telescope.config').values | |
local scan = require('plenary.scandir') | |
local opts = {} | |
opts.entry_maker = make_entry.gen_from_file(opts) | |
local count = 0 |