gabrielgio.lua @ 7b73788635bdddffb340ff779b83d04556b3f8c8

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