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("mason").setup()
6require("treesitter-context").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
22vim.diagnostic.config({
23 signs = {
24 text = {
25 [vim.diagnostic.severity.ERROR] = "",
26 [vim.diagnostic.severity.WARN] = "",
27 [vim.diagnostic.severity.INFO] = "",
28 [vim.diagnostic.severity.HINT] = "",
29 },
30 },
31 virtual_text = false,
32 virtual_lines = {
33 format = function(d)
34 return d.message
35 end,
36 current_line = true,
37 },
38 severity_sort = true,
39})