Skip to content

Loading colorscheme (tokyonight.nvim) #212

Closed Answered by mrcjkb
Rasmus-Bertell asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

Neovim sources your init.lua before plugins are sourced.
lazy.nvim overrides the built-in loading mechanisms, and the LazyPluginSpec.config function is called after it loads plugins.

With rocks.nvim, the initialisation sequence is the closer to Neovim's built-in one (unlike lazy, we don't disable the built-in one), with two differences:

  • A luarocks plugin's lua API (the lua directory) is immediately available on the lua package.path (which is why you can call require('tokyonight').setup() in you init.lua, which wouldn't be possible with plain Neovim).
  • Runtime directories (colors, plugin, autoload, ...) are added to the runtimepath and sourced when Neovim loads rocks.nvim, which is a…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@Anrock
Comment options

@mrcjkb
Comment options

@Anrock
Comment options

@mrcjkb
Comment options

@mrcjkb
Comment options

Answer selected by Rasmus-Bertell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants