Changing color does not work when Lazy loading #52

Open
opened 2024-06-07 04:31:48 -04:00 by arnevm123 · 0 comments
arnevm123 commented 2024-06-07 04:31:48 -04:00 (Migrated from github.com)

Hi,
Currently when lazy loading the plugin the color does not get applied.
This is because this is propagated by an autocommand.

Example config:
(comment out -- lazy = false --> colorworks, commented out it does not.)

	{
		"supermaven-inc/supermaven-nvim",
		-- lazy = false,
		event = "VeryLazy",
		config = function()
			require("supermaven-nvim").setup({
				keymaps = {
					accept_suggestion = "<C-;>",
					clear_suggestion = "<C-/>",
					accept_word = "<C-.>",
				},
				color = {
					suggestion_color = "#ffffff",
					cterm = 244,
				},
			})
		end,
	},

This could be easily fixed by adding an extra call to setup the colorscheme here:
supermaven-inc/supermaven-nvim@ef3bd1a6b6/lua/supermaven-nvim/document_listener.lua (L43)

Hi, Currently when lazy loading the plugin the color does not get applied. This is because this is propagated by an autocommand. Example config: (comment out -- lazy = false --> colorworks, commented out it does not.) ``` { "supermaven-inc/supermaven-nvim", -- lazy = false, event = "VeryLazy", config = function() require("supermaven-nvim").setup({ keymaps = { accept_suggestion = "<C-;>", clear_suggestion = "<C-/>", accept_word = "<C-.>", }, color = { suggestion_color = "#ffffff", cterm = 244, }, }) end, }, ``` This could be easily fixed by adding an extra call to setup the colorscheme here: https://github.com/supermaven-inc/supermaven-nvim/blob/ef3bd1a6b6f722857f2f88d929dd4ac875655611/lua/supermaven-nvim/document_listener.lua#L43
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
supermaven-inc/supermaven-nvim#52
No description provided.