colorful-winsep.nvim
colorful-winsep.nvim copied to clipboard
Change Color per Editor Mode
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.
look light_pollution func
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