doom-nvim icon indicating copy to clipboard operation
doom-nvim copied to clipboard

[FEATURE REQUEST] Better folder structure?

Open Icy-Thought opened this issue 3 years ago • 2 comments
trafficstars

What is the feature, what would you like to be able to do?

Experiencing how doom-nvim is managed, I thought we should change the default doom-nvim installation structure to something similar to LunarVim's approach.

The approach they've chosen is similar to how doom-emacs operates, the LunarVim files are placed inside ~/.config/lvim wheras the user configuration files are placed inside ~/.config/nvim.

What is the use case, why do you want this feature?

  1. Easier to manage your doom-nvim configuration files without messing up doom-nvim -> reduces the amount of files one is allowed to tinker with + enable us to easily manage separate config files for our custom plugin list without overcrowding doom-dir.
  2. Easier to automate the installation of doom-nvim & the placement of your personal configuration files inside ~/.config/nvim.
  3. Ease of grepping the sought after code-lines when dealing with the user-config files.

Possible Implementation (if applicable)

LunarVim's approach.

Additional context

What can also be done is renaming doom files to config.lua, modules.lua and plugins.lua instead of the doom-filename which doom-nvim is currently using.

Icy-Thought avatar Feb 13 '22 12:02 Icy-Thought

Hi, thank you for your interest in the project :)

This is actually doable, doom configuration files can be placed under ~/.config/doom-nvim directory like Doom Emacs (we added a -nvim to not cause problems with doom emacs if it's installed).

What can also be done is renaming doom files to config.lua, modules.lua and plugins.lua instead of the doom-filename which doom-nvim is currently using.

Sounds good to me and this is going to be made in the new modules architecture PR that we are going to merge soon I hope.

Cheers!

NTBBloodbath avatar Feb 13 '22 20:02 NTBBloodbath

Glad you liked the proposal! :)

This is actually doable, doom configuration files can be placed under ~/.config/doom-nvim directory like Doom Emacs (we added a -nvim to not cause problems with doom emacs if it's installed).

Generating a doom-nvim and placing the config files in ~/.config/doom-nvim is more appropriate than having them placed in ~/.config/nvim in my opinion.

Another thing that would be wonderful to have is the ability to create config files inside a specified folder for the sake of maintaining a better config structure in general. And by this I mean, being able to keep plugin configuration files in a separate folder inside ~/.config/doom-nvim. (maybe, ~/.config/doom-nvim/settings or something?)

Icy-Thought avatar Feb 14 '22 06:02 Icy-Thought