Folke Lemaitre
Folke Lemaitre
First of all, thank you for this great new module! Just wanted to let you know it currently doesn't work with fzf-lua. It trips at the line https://github.com/ibhagwan/fzf-lua/blob/3b91c1a471160bd8620bdca8f18743d954994daa/lua/fzf-lua/devicons.lua#L81
You should probably also change this line https://github.com/echasnovski/mini.icons/blob/b5e40acb2f0de7127bbcf026f3a0a55189a428a4/lua/mini/icons.lua#L427 When lua starts loading a module, it changes the value in `package.loaded` to `true`. So better to check for `type == "table"`.
Work-around to make it work on `fzf-lua` ```lua { "echasnovski/mini.icons", lazy = true, opts = {}, init = function() package.preload["nvim-web-devicons"] = function() local Icons = require("mini.icons") local ret = {}...
About that `ts` thing, I had to include work-arounds for that in a number of my plugins. The reason is that the ft detector tries to read the buffer (which...
Sweet! Just merged my PR to use `mini.icons` in LazyVim :)
That's just to lazyload `mini.icons`. `mini.icons` will only be loaded (and setup) when either `mini.icons` or `nvim-web-devicons` is required
For your use-case you should probably not use preload, since you're executing the code anyway, so there's no benefit and you can just define the `nvim-web-devicons` module.
`preload` is only useful when: - you want to define a module that is not a real module - **and** you want to defer the cost of creating the module...
> If lockfile exists then restore all the plugins, otherwise install the newest version. If a plugin is listed in the spec but is not in the lockfile, then install...
Not interested in this. Thank you anyway