diff options
author | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2024-08-20 10:20:11 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2024-08-20 10:20:11 +0200 |
commit | a89408d1302e8d5c0216041a1e25a226696608e6 (patch) | |
tree | e29f3c0ef8cf7a8dd4c82731d0342bce55acdaa5 /lua | |
parent | dfe730b889915e33af1d3da810b13aa9d1d4253c (diff) | |
download | gabrielgio.lua-a89408d1302e8d5c0216041a1e25a226696608e6.tar.gz gabrielgio.lua-a89408d1302e8d5c0216041a1e25a226696608e6.tar.bz2 gabrielgio.lua-a89408d1302e8d5c0216041a1e25a226696608e6.zip |
feat: Sync
Diffstat (limited to 'lua')
-rw-r--r-- | lua/gabrielgio/init.lua | 4 | ||||
-rw-r--r-- | lua/gabrielgio/lazy.lua | 37 |
2 files changed, 33 insertions, 8 deletions
diff --git a/lua/gabrielgio/init.lua b/lua/gabrielgio/init.lua index 00a5ba3..1cd849a 100644 --- a/lua/gabrielgio/init.lua +++ b/lua/gabrielgio/init.lua @@ -3,9 +3,9 @@ local now, later = mini_deps.now, mini_deps.later now(function() require("gabrielgio.settable") end) now(function() require("gabrielgio.treesitter") end) +now(function() require("gabrielgio.lazy") end) +now(function() require("gabrielgio.lsp") 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) later(function() require("gabrielgio.telescope") end) diff --git a/lua/gabrielgio/lazy.lua b/lua/gabrielgio/lazy.lua index f5d07f7..50fd3a5 100644 --- a/lua/gabrielgio/lazy.lua +++ b/lua/gabrielgio/lazy.lua @@ -1,9 +1,34 @@ -- 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") +require('formatter').setup() +require("mason").setup() +require("mason-lspconfig").setup { + ensure_installed = { + "gopls", + "zls", + "lua_ls", + "rust_analyzer", +-- "clangd", not working on alpine + "cssls", + "html", + "emmet_ls", + "pylsp", + "zls", + "tsserver" + }, +} + +local lint = require('lint') + +lint.linters_by_ft = { + markdown = {'vale'}, + go = {"golangcilint"}, + lua = {"luacheck"}, +} + +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + callback = function() + lint.try_lint() + end, +}) -null_ls.setup({sources = {null_ls.builtins.diagnostics.golangci_lint}}) -neogit.setup() -mason.setup() |