cdmill / neomodern.nvim

A collection of modern themes for Neovim
Other
63 stars 3 forks source link

Changing `setup.style` does nothing #13

Closed strash closed 5 months ago

strash commented 5 months ago

The iceclimber is the only theme I can see and the daylight if I change the background to "light".

strash commented 5 months ago

But I can toggle them with setup.toggle_style_key after last update.

cdmill commented 5 months ago

What does your config look like? Because I'm able to change styles on mine. For reference, my config is below:

    config = function()
      require("neomodern").setup({
        style = "iceclimber",
        toggle_style_key = "<leader>cc",
        code_style = {
          headings = "none",
        },
        ui = {
          plain = true,
          show_eob = false,
          -- colored_docstrings = false,
          telescope = "borderless",
        },
      })
      require("neomodern").load()
    end,
strash commented 5 months ago
require("neomodern").setup({
    style = "iceclimber", -- iceclimber, coffeecat, darkforest, campfire, roseprime, daylight
    toggle_style_key = "<leader>bm",
})
require("neomodern").load()

It looks like this. But no matter what style I set the theme is always iceclimber.

cdmill commented 5 months ago

Comment out line 119 in strash/.dotfiles/nvim/.config/nvim/lua/settings.lua. Calling neomodern.load() will already call set colorscheme with your selected style. If you call set colorscheme neomodern it defaults to iceclimber which is where your trouble is coming from. I'll add a note about this in the readme

strash commented 5 months ago

Oh I see, thanks you!