Lazy is working, but I don't understand why... #1224
-
Fairly new to linux and neovim/lazyvim.... I have Lazyvim working but I don't understand where the config files are. For example and explanation, in my init file, I only have 1 item and that is "require("config.lazy")". So, I believe that is some sort of link to /lua/config/lazy.lua. Ok, so I go there and this gives me a little more info on how it is setting up. That's strange but moving on to more confusion, I have no plugins in the plugins directory yet I run lazyvim with quite a few plugins. All installed by Lazyvim. Furthermore, I only have 4 files in the config directory (keymaps.lua, options.lua, lazy.lua, autocmds.lua). Lazy.lua is the only file with some info in it, the other 3 are empty. Hope this all makes sense. I'd appreciate any help in understanding this more. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Lazyvim is installed as a plugin that is managed by |
Beta Was this translation helpful? Give feedback.
Lazyvim is installed as a plugin that is managed by
lazy.nvim
. Thus it will get installed in thestdpath("data")
directory and all other plugins that come by default with LazyVim will also get installed there. You can do:echo stdpath("data")
to see where that directory resides on your OS. This happens to differentiate the LazyVim plugin configuration with the user configuration. All user configuration will go into~/.config/nvim/lua/plugins/
directory and will get merged with the LazyVim and other plugins' default configuration if the user wants to specify some plugin spec and modify it. If you install a plugin, it will get installed in thestdpath("data")
directory along with its defaul…