Search code examples
neovimneovim-plugin

How do I install nord theme in lazyvim?


I'm new to vim (2 days in) and struggling to understand how to configure some things. How can I get nord theme installed and working? I added the plugin but the colorscheme doesn't show up. An example of catpuccin would also be good.


Solution

  • First, have a look at this LazyVim documentation page: https://www.lazyvim.org/plugins/colorscheme which explains the general concept of changing themes.

    Edit your lua/plugins/colorscheme.lua file (or create it if you don't already have one) in your nvim configuration directory.

    For the "nord" theme you asked about, your colorscheme.lua file should look something like this:

    return {
      { "shaunsingh/nord.nvim" },
    
      {
        "LazyVim/LazyVim",
        opts = {
          colorscheme = "nord",
        },
      },
    }
    

    For the "catpuccin" theme you asked about, the LazyVim documentation page linked above has a full example for configuring catpuccin!

    Hope this helps...