aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/lazy.lua
blob: 03e68d19a7f2527cd7a9af1840ead09747fc2a1f (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
35
36
37
38
39
-- this file is an amalgamation of configurations that don't have its own
-- config file and will be lazily loaded
require("gitblame").setup()
require("neogit").setup()
require("mason").setup()
require("treesitter-context").setup()
require("mason-lspconfig").setup({
	ensure_installed = {
		"cssls",
		"emmet_ls",
		-- "gopls",
		"html",
		"lua_ls",
		"pylsp",
		"rust_analyzer",
		"tsserver",
		"zls",
		-- "clangd" not working on alpine
	},
})

vim.diagnostic.config({
	signs = {
		text = {
			[vim.diagnostic.severity.ERROR] = "",
			[vim.diagnostic.severity.WARN] = "",
			[vim.diagnostic.severity.INFO] = "",
			[vim.diagnostic.severity.HINT] = "",
		},
	},
	virtual_text = false,
	virtual_lines = {
		format = function(d)
			return d.message
		end,
		current_line = true,
	},
	severity_sort = true,
})