Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: allow the color scheme to based on os color scheme, and allow changing color scheme on open #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

praveenperera
Copy link

@praveenperera praveenperera commented Dec 17, 2024

Allows me to do this in config

return {
    "praveenperera/peek.nvim",
    event = { "VeryLazy" },
    build = "deno task --quiet build:fast",
    config = function()
        require("peek").setup({
            theme = "light",
            auto_os_theme = true,
        })
        vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
        vim.api.nvim_create_user_command("PeekOpenDark", function(bufnr)
            require("peek").open(
                bufnr,
                { theme = "dark", auto_os_theme = false }
            )
        end, {})
        vim.api.nvim_create_user_command("PeekOpenLight", function(bufnr)
            require("peek").open(
                bufnr,
                { theme = "light", auto_os_theme = false }
            )
        end, {})
        vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
    end,
}

@praveenperera praveenperera changed the title Allow the color scheme to based on os color scheme, and allow changing color scheme on open feat: allow the color scheme to based on os color scheme, and allow changing color scheme on open Dec 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant