properly check web dev icons
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
- add docs
|
- add docs
|
||||||
|
- fix coloring when no dev icons
|
||||||
- add options for users (tree side, tree size)
|
- add options for users (tree side, tree size)
|
||||||
- cd command to move faster accross the fs if needed
|
- cd command to move faster accross the fs if needed
|
||||||
- quickly find file in the directory structure
|
- quickly find file in the directory structure
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ local function dev_icons(pathname, isdir, open)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function get_icon_func_gen()
|
local function get_icon_func_gen()
|
||||||
if api.nvim_call_function('exists', { "WebDevIconsGetFileTypeSymbol" }) == 0 then
|
if api.nvim_call_function('exists', { "*WebDevIconsGetFileTypeSymbol" }) == 1 then
|
||||||
return dev_icons
|
return dev_icons
|
||||||
else
|
else
|
||||||
return default_icons
|
return default_icons
|
||||||
|
|||||||
Reference in New Issue
Block a user