diff options
-rw-r--r-- | init.lua | 9 | ||||
-rw-r--r-- | lua/gabrielgio/init.lua | 1 | ||||
-rw-r--r-- | lua/gabrielgio/lazy.lua | 9 |
3 files changed, 10 insertions, 9 deletions
@@ -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() |