fix: icons with multiple dots but without custom overrides (#2256)
This commit is contained in:
@@ -838,26 +838,31 @@ builtin.find_files({opts}) *telescope.builtin.find_files()*
|
|||||||
{opts} (table) options to pass to the picker
|
{opts} (table) options to pass to the picker
|
||||||
|
|
||||||
Options: ~
|
Options: ~
|
||||||
{cwd} (string) root dir to search from (default:
|
{cwd} (string) root dir to search from
|
||||||
cwd, use utils.buffer_dir() to
|
(default: cwd, use
|
||||||
search relative to open buffer)
|
utils.buffer_dir() to search
|
||||||
{find_command} (function|table) cmd to use for the search. Can be
|
relative to open buffer)
|
||||||
a fn(opts) -> tbl (default:
|
{find_command} (function|table) cmd to use for the search. Can
|
||||||
autodetect)
|
be a fn(opts) -> tbl (default:
|
||||||
{file_entry_encoding} (string) encoding of output of `find_command`
|
autodetect)
|
||||||
{follow} (boolean) if true, follows symlinks (i.e.
|
{file_entry_encoding} (string) encoding of output of
|
||||||
uses `-L` flag for the `find`
|
`find_command`
|
||||||
command)
|
{follow} (boolean) if true, follows symlinks
|
||||||
{hidden} (boolean) determines whether to show hidden
|
(i.e. uses `-L` flag for the
|
||||||
files or not (default: false)
|
`find` command)
|
||||||
{no_ignore} (boolean) show files ignored by .gitignore,
|
{hidden} (boolean) determines whether to show
|
||||||
.ignore, etc. (default: false)
|
hidden files or not (default:
|
||||||
{no_ignore_parent} (boolean) show files ignored by .gitignore,
|
false)
|
||||||
.ignore, etc. in parent dirs.
|
{no_ignore} (boolean) show files ignored by
|
||||||
(default: false)
|
.gitignore, .ignore, etc.
|
||||||
{search_dirs} (table) directory/directories/files to
|
(default: false)
|
||||||
search
|
{no_ignore_parent} (boolean) show files ignored by
|
||||||
{search_file} (string) specify a filename to search for
|
.gitignore, .ignore, etc. in
|
||||||
|
parent dirs. (default: false)
|
||||||
|
{search_dirs} (table) directory/directories/files to
|
||||||
|
search
|
||||||
|
{search_file} (string) specify a filename to search
|
||||||
|
for
|
||||||
|
|
||||||
|
|
||||||
builtin.fd() *telescope.builtin.fd()*
|
builtin.fd() *telescope.builtin.fd()*
|
||||||
@@ -1344,14 +1349,15 @@ builtin.keymaps({opts}) *telescope.builtin.keymaps()*
|
|||||||
{opts} (table) options to pass to the picker
|
{opts} (table) options to pass to the picker
|
||||||
|
|
||||||
Options: ~
|
Options: ~
|
||||||
{modes} (table) a list of short-named keymap modes to search
|
{modes} (table) a list of short-named keymap modes to search
|
||||||
(default: { "n", "i", "c", "x" })
|
(default: { "n", "i", "c", "x" })
|
||||||
{show_plug} (boolean) if true, the keymaps for which the lhs contains
|
{show_plug} (boolean) if true, the keymaps for which the lhs
|
||||||
"<Plug>" are also shown (default: true)
|
contains "<Plug>" are also shown (default:
|
||||||
{only_buf} (boolean) if true, only show the buffer-local keymaps
|
true)
|
||||||
(default: false)
|
{only_buf} (boolean) if true, only show the buffer-local keymaps
|
||||||
{lhs_filter} (function) filter(lhs:string) -> boolean. true if the
|
(default: false)
|
||||||
keymap should be shown (optional)
|
{lhs_filter} (function) filter(lhs:string) -> boolean. true if the
|
||||||
|
keymap should be shown (optional)
|
||||||
|
|
||||||
|
|
||||||
builtin.filetypes({opts}) *telescope.builtin.filetypes()*
|
builtin.filetypes({opts}) *telescope.builtin.filetypes()*
|
||||||
|
|||||||
@@ -457,7 +457,10 @@ utils.transform_devicons = load_once(function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local basename = utils.path_tail(filename)
|
local basename = utils.path_tail(filename)
|
||||||
local icon, icon_highlight = devicons.get_icon(basename, utils.file_extension(basename), { default = true })
|
local icon, icon_highlight = devicons.get_icon(basename, utils.file_extension(basename), { default = false })
|
||||||
|
if not icon then
|
||||||
|
icon, icon_highlight = devicons.get_icon(basename, nil, { default = true })
|
||||||
|
end
|
||||||
local icon_display = (icon or " ") .. " " .. (display or "")
|
local icon_display = (icon or " ") .. " " .. (display or "")
|
||||||
|
|
||||||
if conf.color_devicons then
|
if conf.color_devicons then
|
||||||
@@ -488,7 +491,10 @@ utils.get_devicons = load_once(function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local basename = utils.path_tail(filename)
|
local basename = utils.path_tail(filename)
|
||||||
local icon, icon_highlight = devicons.get_icon(basename, utils.file_extension(basename), { default = true })
|
local icon, icon_highlight = devicons.get_icon(basename, utils.file_extension(basename), { default = false })
|
||||||
|
if not icon then
|
||||||
|
icon, icon_highlight = devicons.get_icon(basename, nil, { default = true })
|
||||||
|
end
|
||||||
if conf.color_devicons then
|
if conf.color_devicons then
|
||||||
return icon, icon_highlight
|
return icon, icon_highlight
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user