rebelot / kanagawa.nvim

NeoVim dark colorscheme inspired by the colors of the famous painting by Katsushika Hokusai.
MIT License
4.34k stars 182 forks source link

not possible to change the color of the cursor line #195

Closed andrrrw closed 10 months ago

andrrrw commented 10 months ago

I'm trying to change the color of the cursor line, but the background color changes instead Trying to change the color in the palette - sumilnk3 = "color" Here is my cfg

return {
    'rebelot/kanagawa.nvim',
    lazy = false,
    priority = 1000,
config = function()

require('kanagawa').setup({
    compile = false,             -- enable compiling the colorscheme
    undercurl = true,            -- enable undercurls
    commentStyle = { italic = true },
    functionStyle = {},
    keywordStyle = { italic = true},
    statementStyle = { bold = true },
    typeStyle = {},
    transparent = false,         -- do not set background color
    dimInactive = false,         -- dim inactive window `:h hl-NormalNC`
    terminalColors = true,       -- define vim.g.terminal_color_{0,17}
    -- Удалить фон нумерации строк
    colors = {                   -- add/modify theme and palette colors
        palette = {
            sumiInk3 = "#2c3043",
            },
        theme = {
            all = {
                ui = {
                    bg_gutter = "none"
                }
            }
        }
    },
    overrides = function(colors)
    local theme = colors.theme
    return {
        NormalFloat = { bg = "none" },
        FloatBorder = { bg = "none" },
        FloatTitle = { bg = "none" },

        -- Save an hlgroup with dark background and dimmed foreground
        -- so that you can use it where your still want darker windows.
        -- E.g.: autocmd TermOpen * setlocal winhighlight=Normal:NormalDark
        NormalDark = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m3 },

        -- Popular plugins that open floats will link to NormalFloat by default;
        -- set their background accordingly if you wish to keep them dark and borderless
        LazyNormal = { bg = theme.ui.bg_m3, fg = theme.ui.fg_dim },
        MasonNormal = { bg = theme.ui.bg_m3, fg = theme.ui.fg_dim },
    }
end,
})

-- setup must be called before loading
require("kanagawa").load("wave")
end,
}

image

andrrrw commented 10 months ago

just added bg_p2 and assign color in HEX idk how it works but it works

 colors = {
        theme = {
            all = {
                ui = {
                    bg_gutter = "none",
            bg_p2 = "#2c3043"
                        }
            }
        }
},

Final result: image