nord.nvim icon indicating copy to clipboard operation
nord.nvim copied to clipboard

update setup (new style)

Open mohammadne opened this issue 3 years ago • 2 comments

Hi @shaunsingh, first of all thanks for your plugin.

I wonder to know that is it possible to change the plugin of how it'll setup :))

I mean like other themes it's possible to set the colorscheme like:

vim.cmd("colorscheme onedark") -- set colorscheme

and the setup part would be like below:

local exists, nord = pcall(require, "nord")
if not exists then
	return
end

nord.setup({
  -- setups goes here
})

I really don't like how it will be setup with vim globals and rather like to call setup function on it and not the set function.

some examples would be:

reason

the style of setup would break me to have multiple themes in a uniform style and not follows other community themes.

mohammadne avatar Aug 12 '22 14:08 mohammadne

I believe require('nord').set() works (I'll change that require('nord').setup(). the reason it isn't mentioned in the readme is because there was a bug that loaded the theme twice when you called .setup(). Along with revamping a few other things soon, I'll fix that

shaunsingh avatar Aug 12 '22 16:08 shaunsingh

Hi @shaunsingh is there any update?

mohammadne avatar Sep 01 '22 18:09 mohammadne