From 17c8da6f58574efd674f1dc3b2f93931accf9eee Mon Sep 17 00:00:00 2001 From: redyf Date: Sat, 12 Oct 2024 20:03:06 -0300 Subject: [PATCH] refactor: modularize main import file --- config/default.nix | 114 ++++++++++++++------------------------------- 1 file changed, 36 insertions(+), 78 deletions(-) diff --git a/config/default.nix b/config/default.nix index a1e78273..ada7e669 100644 --- a/config/default.nix +++ b/config/default.nix @@ -1,83 +1,41 @@ +{ lib, config, ... }: { # Import all your configuration modules here imports = [ - ./sets.nix - ./keymaps.nix - - ./bufferlines/bufferline.nix - - ./colorschemes/base16.nix - ./colorschemes/catppuccin.nix - ./colorschemes/rose-pine.nix - - ./completion/cmp.nix - ./completion/copilot.nix - ./completion/lspkind.nix - - ./dap/dap.nix - - ./filetrees/neo-tree.nix - ./git/gitsigns.nix - ./git/diffview.nix - ./git/lazygit.nix - ./git/neogit.nix - - ./languages/nvim-jdtls.nix - ./languages/nvim-lint.nix - ./languages/treesitter/treesitter.nix - ./languages/treesitter/treesitter-context.nix - ./languages/treesitter/treesitter-textobjects.nix - ./languages/treesitter/ts-autotag.nix - ./languages/treesitter/ts-context-commentstring.nix - - ./lsp/conform.nix - ./lsp/fidget.nix - ./lsp/lsp.nix - ./lsp/lspsaga.nix - ./lsp/trouble.nix - - ./none-ls/none-ls.nix - - ./pluginmanagers/lazy.nix - - ./snippets/luasnip.nix - - ./statusline/lualine.nix - ./statusline/staline.nix - - ./telescope/telescope.nix - - ./ui/alpha.nix - ./ui/dressing-nvim.nix - ./ui/indent-blankline.nix - ./ui/noice.nix - ./ui/nvim-notify.nix - ./ui/nui.nix - ./ui/web-devicons.nix - - ./utils/better-escape.nix - ./utils/neocord.nix - ./utils/harpoon.nix - ./utils/illuminate.nix - ./utils/markdown-preview.nix - ./utils/mini.nix - ./utils/neodev.nix - ./utils/neotest.nix - ./utils/nvim-autopairs.nix - ./utils/nvim-colorizer.nix - ./utils/nvim-surround.nix - ./utils/nvterm.nix - ./utils/oil.nix - ./utils/persistence.nix - ./utils/plenary.nix - ./utils/project-nvim.nix - ./utils/sidebar.nix - ./utils/tmux-navigator.nix - ./utils/todo-comments.nix - ./utils/ultimate-autopair.nix - ./utils/undotree.nix - ./utils/wakatime.nix - ./utils/whichkey.nix - ./utils/wilder.nix + ./bufferlines + ./colorschemes + ./completion + ./dap + ./filetrees + ./git + ./keys.nix + ./languages + ./lsp + ./none-ls + ./pluginmanagers + ./sets + ./snippets + ./statusline + ./telescope + ./ui + ./utils ]; + + bufferlines.enable = lib.mkDefault true; + colorschemes.enable = lib.mkDefault true; + completion.enable = lib.mkDefault true; + dap.enable = lib.mkDefault true; + filetrees.enable = lib.mkDefault true; + git.enable = lib.mkDefault true; + keys.enable = true; + languages.enable = true; + lsp.enable = lib.mkDefault true; + none-ls.enable = lib.mkDefault true; + sets.enable = lib.mkDefault true; + pluginmanagers.enable = lib.mkDefault true; + snippets.enable = lib.mkDefault true; + statusline.enable = lib.mkDefault true; + telescope.enable = lib.mkDefault true; + ui.enable = lib.mkDefault true; + utils.enable = lib.mkDefault true; }