aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua9
-rw-r--r--lua/gabrielgio/init.lua1
-rw-r--r--lua/gabrielgio/lazy.lua9
3 files changed, 10 insertions, 9 deletions
diff --git a/init.lua b/init.lua
index c4df3b3..840cb0c 100644
--- a/init.lua
+++ b/init.lua
@@ -47,13 +47,4 @@ add({
})
for _, value in ipairs(pkgs) do add({source = value}) end
-
-local neogit = require("neogit")
-local null_ls = require("null-ls")
-local mason = require("mason")
-
-null_ls.setup({sources = {null_ls.builtins.diagnostics.golangci_lint}})
-neogit.setup()
-mason.setup()
-
require("gabrielgio")
diff --git a/lua/gabrielgio/init.lua b/lua/gabrielgio/init.lua
index 590aa13..00a5ba3 100644
--- a/lua/gabrielgio/init.lua
+++ b/lua/gabrielgio/init.lua
@@ -4,6 +4,7 @@ local now, later = mini_deps.now, mini_deps.later
now(function() require("gabrielgio.settable") end)
now(function() require("gabrielgio.treesitter") end)
+later(function() require("gabrielgio.lazy") end)
later(function() require("gabrielgio.lsp") end)
later(function() require("gabrielgio.mini") end)
later(function() require("gabrielgio.go") end)
diff --git a/lua/gabrielgio/lazy.lua b/lua/gabrielgio/lazy.lua
new file mode 100644
index 0000000..f5d07f7
--- /dev/null
+++ b/lua/gabrielgio/lazy.lua
@@ -0,0 +1,9 @@
+-- this file is an amalgamation of configurations that don't have its own
+-- config file and will be lazily loaded
+local neogit = require("neogit")
+local null_ls = require("null-ls")
+local mason = require("mason")
+
+null_ls.setup({sources = {null_ls.builtins.diagnostics.golangci_lint}})
+neogit.setup()
+mason.setup()