Closed medwatt closed 2 years ago
atm you can redefine startify.mru_opts.ignore
https://github.com/goolord/alpha-nvim/blob/main/lua/alpha/themes/startify.lua#L109-L110
and then write your own predicate on the path & extension using lua
Thanks for the reply. I am asking because I tried to write my own but couldn't get it to work. I hope you wouldn't mind helping out.
sure, the function you want is string.find
, it would probably end up looking like this
startify.mru_opts.ignore = function (path, ext)
local ext_ignore = { "gitcommit" }
return (string.find(path, '/run/user/.*/firenvim')) or (string.find(path, "COMMIT_EDITMSG")) or (vim.tbl_contains(ext_ignore, ext))
end
I am using the startify theme and I would like to ignore all files from a given directory. For example, since I use firenvim, I don't start the MRU to have files from
/run/user/.*/firenvim'}
. With startify, I was able to do this withvim.g.startify_skiplist = {'/run/user/.*/firenvim'}
. How can I do that here?