Skip to content

mini.hipatterns how to enable hex color coding #600

Answered by NotAShelf
cronyakatsuki asked this question in Q&A
Discussion options

You must be logged in to vote
- hex_color = "require('mini.hipatterns').gen_highlighter.hex_color()";
+ hex_color = lib.generators.mkLuaInline "require('mini.hipatterns').gen_highlighter.hex_color()";

Could you try this? By default " ... " will be converted to a string literal, which will not act as the Lua function you expect it to act as.

Edit:

lib.mkLuaInline -> lib.generators.mkLuaInline

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cronyakatsuki
Comment options

@NotAShelf
Comment options

Answer selected by cronyakatsuki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants