Open
Description
Is your feature request related to a problem? Please describe
For example:
require("freeze-code").setup({
freeze_config = {
theme = "rose-pine-moon",
},
dir = "/tmp",
})
With this user config the user could have a base config when using it, but if for example want to change the dir
to for example the current project to add to an assets
directory, it will have to change the config and reload the plugin.
Describe the solution you'd like
- Expose to the plugin options an entry like
input_opts = { dir = false, theme = false, ... }
. - Add a function that takes the current options and the options to change based on the
input_opts
. - Create a command for better use
FreezeAs
(like save as). - If command, then show an options changer with
vim.ui.input
for everyinput_opts[opt] = true
.
Describe alternatives you've considered
- Creating a
vim.ui.select
with the options to chose like:
prompt: Choose what option to change
1. dir
2. theme
3. config
4. ...
- If one of the selected, show
vim.ui.input
to change thatplugin_opt
, ask for a choice again and ifchoice == nil
don't show again, continuefreeze
.
Additional context
Something like this from my dotfiles for choosing fugitive actions: