You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say for example I want to make a screenshot of the :checkhealth or a git diff inside fugitive or there is a filetype that freeze currently doesn't support (at least at full like multilanguages). It will error like this:
As you can see in both, the --language flag is not working because it can't recognise it, but in the first photo I have logged out what comes from the args value on the user command.
desc="convert range to code image representation",
force=false,
range=true,
})
Note
If added the option nargs = "*".
If implemented it it will look like this:
checkhealth as txt
fugitive as txt:
Note
@isabelroses I have an implementation of this alongside with the open command discussed on the other issue.
In case of going forward with either of those, I can create a separate PR for each.
This change can also work for other options in case that for example you want a global theme in the options, but you want to change it for another screenshot like :Freeze theme = catppuccin-mocha instead of rose-pine-moon if defaulted as option.
:Freeze language=lua theme=catppuccin-mocha in stylua.toml with rose-pine-moon in config options:
The text was updated successfully, but these errors were encountered:
Let's say for example I want to make a screenshot of the
:checkhealth
or a git diff inside fugitive or there is a filetype that freeze currently doesn't support (at least at full like multilanguages). It will error like this:As you can see in both, the
--language
flag is not working because it can't recognise it, but in the first photo I have logged out what comes from theargs
value on the user command.freeze.nvim/lua/freeze/init.lua
Lines 194 to 200 in 6f0b252
Note
If added the option
nargs = "*"
.If implemented it it will look like this:
checkhealth
astxt
fugitive
astxt
:Note
@isabelroses I have an implementation of this alongside with the
open
command discussed on the other issue.In case of going forward with either of those, I can create a separate PR for each.
This change can also work for other options in case that for example you want a global theme in the options, but you want to change it for another screenshot like
:Freeze theme = catppuccin-mocha
instead ofrose-pine-moon
if defaulted as option.:Freeze language=lua theme=catppuccin-mocha
instylua.toml
withrose-pine-moon
in config options:The text was updated successfully, but these errors were encountered: