vim.iter.flatten() is not a full replacement (does not support arrays
with `nil`); a fix may be backported but for now only use it on nightly
(0.10 has no warnings yet).
if there is extension_list, then the builtin_list would be replaced/overriden. e.g. if there are 3 items in extension_list, then first 3 items in builtin_list would be replaced when you type
`:Telescope fi` and press tab to get completion list.
* feat: add `multi_icon` option to pickers and corresponding highlight
* feat: allow `multi_icon` to be any length
* fix: adjust `selection_caret` highlighting
* support custom table type keyword
* remove custom split function use vim.split
* remove unused varable fix test
* rewrite get extensions subcommand
* add comment
* remove blankline
* check the param in default options
* revert
* add register keyword function
* refactor telescope command
* addd telescope default options support
* fix variable name wrong
* convert command line string to lua type
* add comment.
* update readme for use theme in commandline
* enhance complete in commandline
* enhance complete in commandline
* enhance covert commandline options
Configure preview window with:
autocmd User TelescopePreviewerLoaded setlocal wrap
autocmd User TelescopePreviewerLoaded setlocal number
file_maker example: Use regex highlighting for certain filetype like `*min.js` because they slow
down things with treesitter highlighter. Just a snippet for tests. We will do an extension :)
local previewers = require('telescope.previewers')
local putils = require('telescope.previewers.utils')
local pfiletype = require('plenary.filetype')
local _bad = { '.*%.min%.js' }
local bad_files = function(filepath)
for _, v in ipairs(_bad) do
if filepath:match(v) then
return true
end
end
return false
end
local new_maker = function(filepath, bufnr, bufname, use_ft_detect, callback)
if use_ft_detect == nil then use_ft_detect = true end
if bad_files(filepath) then
previewers.buffer_previewer_maker(filepath, bufnr, bufname, false, callback)
local ft = pfiletype.detect(filepath)
putils.regex_highlighter(bufnr, ft)
else
previewers.buffer_previewer_maker(filepath, bufnr, bufname, use_ft_detect, callback)
end
end
require('telescope').setup {
defaults = {
buffer_previewer_maker = new_maker,
}
}
* rewrite command of telescope
* add complete support
* add comment
* rewrite get builtin list
* Update README.md
* use vim.tbl_keys function
* rewrite complete-list
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT
* add much much better tracking. so much less hax
* status updates, oneshot job updates, etc.
* remove temp function
* add status function
* asdfasdfasdf
Started adding `resolve` which will allow you to do some really nice
stuff easily with options to get the window options from a variety of
inputs.
You can see how we do it in pickers.lua for borders & borderchars
currently.