[mini.deps] Apply Folke's Tokyonight Dev Environment #1012
Replies: 2 comments 4 replies
-
While I don't plan on visiting tokyonight or cyberdreams repos anytime soon, I still added this to my config 😄 Made a small change and replaced these two lines: local hi_spec = lazyspec[1]
if not hi_spec or type(hi_spec[1]) ~= "string" or not string.find(hi_spec[1], "hipatterns") then return end With these lines just in case someone has other plug-in specs in their local hi_spec = vim.tbl_filter(function(spec)
return type(spec[1]) == "string" and spec[1]:find("hipatterns") ~= nil
end, lazyspec)[1]
if not hi_spec then return end |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing! I am thinking about an idea of adding something like |
Beta Was this translation helpful? Give feedback.
-
Before:
After:
As the initiator of
.lazy.lua
I was curious to see if the Tokyonight Dev Environment could also be applied usingmini.deps
as the package manager.This is especially interesting when other
colorscheme
creators also apply this approach.The code:
Open a file inside the directory of
tokyonight.nvim
and the patterns apply exactly as when usinglazy.nvim
. An initial:w
might be necessary.Beta Was this translation helpful? Give feedback.
All reactions