[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 endWith 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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Before:
After:
As the initiator of
.lazy.luaI was curious to see if the Tokyonight Dev Environment could also be applied usingmini.depsas the package manager.This is especially interesting when other
colorschemecreators also apply this approach.The code:
Open a file inside the directory of
tokyonight.nvimand the patterns apply exactly as when usinglazy.nvim. An initial:wmight be necessary.Beta Was this translation helpful? Give feedback.
All reactions