aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio
diff options
context:
space:
mode:
authorGabriel A. Giovanini <g.giovanini@gridx.de>2024-07-31 11:22:38 +0200
committerGabriel A. Giovanini <g.giovanini@gridx.de>2024-07-31 11:22:38 +0200
commit1ad342d73e7e8df5235c699a18c87fc4c9fc4b03 (patch)
tree56306c4dd9c5d8569fef64ef04759d292e6aa2c1 /lua/gabrielgio
parente5266e16333da78937e853638e2ae87089a39c4a (diff)
downloadgabrielgio.lua-1ad342d73e7e8df5235c699a18c87fc4c9fc4b03.tar.gz
gabrielgio.lua-1ad342d73e7e8df5235c699a18c87fc4c9fc4b03.tar.bz2
gabrielgio.lua-1ad342d73e7e8df5235c699a18c87fc4c9fc4b03.zip
ref: Move more plugin setup to lazy load
Diffstat (limited to 'lua/gabrielgio')
-rw-r--r--lua/gabrielgio/init.lua1
-rw-r--r--lua/gabrielgio/lazy.lua9
2 files changed, 10 insertions, 0 deletions
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()