colorful-winsep.nvim icon indicating copy to clipboard operation
colorful-winsep.nvim copied to clipboard

Change Color per Editor Mode

Open acook opened this issue 9 months ago • 1 comments

I think it would be nice to have the border change color depending on the mode, like many statuslines do.

I tried to implement this myself, but it seems that whenever I call setup again, the plugin breaks, so I can't change the colors after init.

Hints would be appreciated.

acook avatar Feb 20 '25 12:02 acook

look light_pollution func

denstiny avatar Apr 11 '25 02:04 denstiny

Do something like this after the newest update

vim.api.nvim_create_autocmd({ "InsertEnter" }, {
    callback = function()
        vim.api.nvim_set_hl(0, "ColorfulWinSep", { fg = "#95e1c6", bg = vim.api.nvim_get_hl(0, { name = "Normal" }).bg })
    end,
})

vim.api.nvim_create_autocmd({ "InsertLeave" }, {
    callback = function()
        vim.api.nvim_set_hl(0, "ColorfulWinSep", { fg = "#957CC6", bg = vim.api.nvim_get_hl(0, { name = "Normal" }).bg })
    end,
})

https://github.com/user-attachments/assets/d9909049-6180-4525-94b5-6791371e071a

XXiaoA avatar Aug 08 '25 06:08 XXiaoA