diff options
Diffstat (limited to 'lua/gabrielgio/lazy.lua')
| -rw-r--r-- | lua/gabrielgio/lazy.lua | 37 | 
1 files changed, 31 insertions, 6 deletions
| 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() | 
