mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
helpers: Add mkLua,mkLuaFn (defaultNullOpts or not) (#866)
This makes it such that defaultNullOpts.mkStr never represents a lua string, easing documenting where a string is a lua string vs lua code.
This commit is contained in:
parent
f2e808a519
commit
abd1c4007a
5 changed files with 70 additions and 45 deletions
|
@ -69,7 +69,7 @@ in {
|
|||
'';
|
||||
|
||||
inlayHints = {
|
||||
inline = helpers.defaultNullOpts.mkStr ''vim.fn.has("nvim-0.10") == 1'' ''
|
||||
inline = helpers.defaultNullOpts.mkLua ''vim.fn.has("nvim-0.10") == 1'' ''
|
||||
Show hints inline.
|
||||
'';
|
||||
|
||||
|
@ -159,7 +159,7 @@ in {
|
|||
setupOptions = with cfg;
|
||||
{
|
||||
inlay_hints = with inlayHints; {
|
||||
inline = helpers.mkRaw inline;
|
||||
inherit inline;
|
||||
only_current_line = onlyCurrentLine;
|
||||
only_current_line_autocmd = onlyCurrentLineAutocmd;
|
||||
show_parameter_hints = showParameterHints;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue