Persist Picked Colourscheme? #1978
-
Contributing guidelines
Module(s)mini.extra QuestionI am quite pleased with mini.extra's colourscheme picker. The only nice-to-have would be the title. Would this be possible? I assume the requirement is to persist the scheme's name somewhere, and load it on startup. {
"nvim-mini/mini.extra",
version = false,
opts = {},
keys = {
{ "<leader>kt", "<cmd>Pick colorschemes<cr>", desc = "Pick theme" },
},
}, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If I understand the question correctly, you want to be able to pick any color scheme via If yes, then this is out of scope of the picker, I am afraid. The reason is that setting color scheme is a part of user's config and can be done in various places and methods. The suggestion here is to manually explore and pick color scheme via the picker and manually adjust 'init.lua' / config by putting a line |
Beta Was this translation helpful? Give feedback.
-
Unfortunate. Thank you regardless. |
Beta Was this translation helpful? Give feedback.
If I understand the question correctly, you want to be able to pick any color scheme via
:Pick colorschemes
and have it automatically loaded during startup?If yes, then this is out of scope of the picker, I am afraid. The reason is that setting color scheme is a part of user's config and can be done in various places and methods.
The suggestion here is to manually explore and pick color scheme via the picker and manually adjust 'init.lua' / config by putting a line
vim.cmd('colorscheme picked-colorscheme-name')
in it.