NvChad / ui

Lightweight & high performance UI plugin for nvchad
GNU General Public License v3.0
230 stars 124 forks source link

How to use as a plugin #302

Closed kareemmahlees closed 3 months ago

kareemmahlees commented 3 months ago

Description

I am using LazyVim for my configuration, but I like the way NvChad styles the completion suggestions so I went off coping and pasting some stuff from here to try and get the same styling. But every time I try to require("nvchad") or require("nvconfig") I get the error module chadrc not found, although I am getting correct autocompletions for the underlying enums and fields when I try to require either.

Here is how I import NvChad/ui ( which is the same as here) :

  {
    "NvChad/ui",
    branch = "v2.5",
    lazy = false,
    config = function()
      require("nvchad")
    end,
  },

Stacktrace

image

Environment info

siduck commented 3 months ago

you need chadrc to be in your path! lua/chadrc.lua. Thats the configuration used over the standard .setup(), due to a variety of reasons

siduck commented 3 months ago

and the ui plugin needs base46 as dependency too

https://gist.github.com/siduck/cc7305db586d512b5fd3f4ea73c9cc81