summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo/lsp/config/sources.lua
blob: 0aa5c1e61e9ebb7007408cd4fc242213dd486f99 (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
--
-- sources for lsp
--

local null_ls = require("null-ls")
local diagnostics = null_ls.builtins.diagnostics
local formatting = null_ls.builtins.formatting

local M = {
	lsp_servers = { "rust_analyzer", "pyright", "bashls" },
	null_ls = {
		diagnostics.alex,
		diagnostics.codespell,
		diagnostics.flake8,
		formatting.black,
		formatting.codespell,
		formatting.prettier,
		formatting.rustfmt,
		formatting.stylua,
	},
	mason = {
		"alex",
		"black",
		"codespell",
		"flake8",
		"prettier",
		"stylua",
	},
}

return M