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.
[!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:
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.https://github.com/charm-and-friends/freeze.nvim/blob/6f0b2526d2240930fa3d0babbe0cd181c5907556/lua/freeze/init.lua#L194-L200
If implemented it it will look like this:
checkhealth
astxt
fugitive
astxt
: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: