aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/lazy.lua
blob: 50fd3a5ebadf09537b93080ee3e1ff462d9b2a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-- this file is an amalgamation of configurations that don't have its own
-- config file and will be lazily loaded
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,
})