Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing color does not work when Lazy loading #52

Open
arnevm123 opened this issue Jun 7, 2024 · 0 comments · May be fixed by #53
Open

Changing color does not work when Lazy loading #52

arnevm123 opened this issue Jun 7, 2024 · 0 comments · May be fixed by #53

Comments

@arnevm123
Copy link

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:

if config.color and config.color.suggestion_color and config.color.cterm then

arnevm123 added a commit to arnevm123/supermaven-nvim that referenced this issue Jun 7, 2024
arnevm123 added a commit to arnevm123/supermaven-nvim that referenced this issue Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant