blob: 2ca16b983054148789d3166c17ee9ad93668ef2f (
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
|
return {
{
'nvimtools/none-ls.nvim',
dependencies = {
{
'davidmh/cspell.nvim',
},
},
config = function ()
local cspell = require('cspell')
local null_ls = require('null-ls')
null_ls.setup {
sources = {
cspell.diagnostics.with({
diagnostics_postprocess = function(diagnostic)
diagnostic.severity = vim.diagnostic.severity.HINT
end,
}),
cspell.code_actions,
null_ls.builtins.diagnostics.djlint,
null_ls.builtins.formatting.djlint,
null_ls.builtins.code_actions.gitsigns,
},
should_attach = function(bufnr)
local bufname = vim.api.nvim_buf_get_name(bufnr)
return not bufname:match("gen.nvim")
end,
}
end,
}
}
|