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