-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
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.inputfor everyinput_opts[opt] = true.
Describe alternatives you've considered
- Creating a
vim.ui.selectwith 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.inputto change thatplugin_opt, ask for a choice again and ifchoice == nildon't show again, continuefreeze.
Additional context
Something like this from my dotfiles for choosing fugitive actions:
Screen.Recording.2024-06-09.at.23.57.11.mov
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request