Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1a820c4 breaks things #4

Open
mhartington opened this issue Oct 19, 2021 · 1 comment
Open

1a820c4 breaks things #4

mhartington opened this issue Oct 19, 2021 · 1 comment

Comments

@mhartington
Copy link
Contributor

mhartington commented Oct 19, 2021

I recently updated and noticed that the style changes break things in neovim.

Screen Shot 2021-10-19 at 8 00 58 PM

After reverting and trying to debug, it seems the change of yanil/<package> to yanil.<package>, is the problem.

diff --git a/lua/yanil.lua b/lua/yanil.lua
index c2dc81d..8808131 100644
--- a/lua/yanil.lua
+++ b/lua/yanil.lua
@@ -1,9 +1,9 @@
-local git      = require("yanil/git")
-local devicons = require("yanil/devicons")
+local git      = require("yanil.git")
+local devicons = require("yanil.devicons")

 local config = {
-    colors   = require("yanil/colors"),
-    commands = require("yanil/commands"),
+    colors   = require("yanil.colors"),
+    commands = require("yanil.commands"),
 }

 local M = {}
@Xuyuanp
Copy link
Owner

Xuyuanp commented Oct 20, 2021

Sorry for this breaking change. I revert this change.

The module structure was not well designed at the beginning. Module-scoped states were misused too much. I'm planning to refactor it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants