1-- this file is an amalgamation of configurations that don't have its own
2-- config file and will be lazily loaded
3require('formatter').setup()
4require("mason").setup()
5require("mason-lspconfig").setup {
6 ensure_installed = {
7 "gopls",
8 "zls",
9 "lua_ls",
10 "rust_analyzer",
11-- "clangd", not working on alpine
12 "cssls",
13 "html",
14 "emmet_ls",
15 "pylsp",
16 "zls",
17 "tsserver"
18 },
19}
20
21local lint = require('lint')
22
23lint.linters_by_ft = {
24 markdown = {'vale'},
25 go = {"golangcilint"},
26 lua = {"luacheck"},
27}
28
29vim.api.nvim_create_autocmd({ "BufWritePost" }, {
30 callback = function()
31 lint.try_lint()
32 end,
33})
34