Skip to content

Suggestion: secure way of loading colorscheme #8

Description

@voyeg3r

If by any change packer fails on installing the colorscheme the starting process will not fail or bother the user more than needed:

-- in my config I use ayu colorscheme
local colorscheme = "ayu-dark"
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
    vim.notify("colorscheme " .. colorscheme .. " not found!")
    return
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions