neovim-config/lua/plugins/none-ls.lua

21 lines
521 B
Lua

return {
{
'nvimtools/none-ls.nvim',
event = 'VeryLazy',
dependencies = { 'davidmh/cspell.nvim' },
opts = function(_, opts)
local cspell = require('cspell')
opts.sources = opts.sources or {}
table.insert(
opts.sources,
cspell.diagnostics.with({
diagnostics_postprocess = function(diagnostic)
diagnostic.severity = vim.diagnostic.severity.WARN
end,
})
)
table.insert(opts.sources, cspell.code_actions)
end,
},
}