-
-
Notifications
You must be signed in to change notification settings - Fork 474
config_tree
MickTheRus edited this page May 4, 2023
·
2 revisions
.
βββ init.lua -- The entrypoint for the configuration
βββ lazy-lock.json -- Version Control
βββ lua
βββ autocommands.lua -- Autocommands
βββ keymaps.lua -- Keymaps for neovim
βββ Lazy.lua -- Auto installation and configuration of
βββ options.lua -- Neovim settings
βββ settings -- LSP settings
βΒ Β βββ lua_ls.lua
βΒ Β βββ pyright.lua
βββ user -- Auto loaded configurations
βΒ Β βββ alpha.lua
βΒ Β βββ autopairs.lua
βΒ Β βββ bufferline.lua
βΒ Β βββ cmp.lua
βΒ Β βββ colorscheme.lua
βΒ Β βββ comment.lua
βΒ Β βββ dap.lua
βΒ Β βββ dapui.lua
βΒ Β βββ gitsigns.lua
βΒ Β βββ illuminate.lua
βΒ Β βββ indentline.lua
βΒ Β βββ lsp.lua
βΒ Β βββ lualine.lua
βΒ Β βββ mason.lua
βΒ Β βββ null-ls.lua
βΒ Β βββ nvim-dev-icons.lua
βΒ Β βββ nvim-tree.lua
βΒ Β βββ project.lua
βΒ Β βββ telescope.lua
βΒ Β βββ toggleterm.lua
βΒ Β βββ treesitter.lua
βΒ Β βββ which-key.lua
βββ utils -- Anything that can be accesed by anything (LSP names, DAP)
βββ init.lua
- We use a separate folder for plugins configurations to avoid loading loop.
I.E: Having a filelua/dap.lua
and tryin to configure dap will call that file instead of the actual plugin.
Why aren't LSP settings under lua/user/lsp/settings
anymore like they are in neovim-from-scratch?
- The simple reason is that Lazy tries to source them as separate configs like it does with
mason.lua
only it errors out. While it is possible to stop Lazy from sourcing the file, LSP might try to pick it up as a settings instead.
A) Lazy needs a map leader which is being set inside the keymaps.lua
.
B) Lazy cannot load those files because they don't return the proper data like plugin configs do.
C) We do not require lazy loading in these and it's nice to have decent defaults.
A) As of right now it is not used for much other than being sourced by mason-lspconfig and nvim-lspconfig to configure and install necesarry language servers.
B) Mainly to be sourced when a little function needed to filter specific text input or such by a lot of different plugins.