Raw lua string? #532
Answered
by
NotAShelf
justDeeevin
asked this question in
Q&A
-
One of my favorite features of NixVim is the ability to use raw lua for almost any option. For instance, if I want an option to be a function instead of a string, I could use raw lua like this: {
some_option = {
__raw = ''
function()
print("hi")
end
'';
};
} is there any similar functionality in nvf? Specifically, I want to set the |
Beta Was this translation helpful? Give feedback.
Answered by
NotAShelf
Jan 7, 2025
Replies: 1 comment 3 replies
-
Yes, most options allow (if viable) a lua string: Assuming, in setupOpts, you set option
will be treated as a raw lua string. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
justDeeevin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, most options allow (if viable) a lua string:
Assuming, in setupOpts, you set option
foo
:will be treated as a raw lua string.