2023-05-19 19:42:52 +02:00
|
|
|
return {
|
|
|
|
-- inject lsp formatting, diagonstics etc
|
2023-12-23 02:37:23 +01:00
|
|
|
'nvimtools/none-ls.nvim',
|
2023-05-19 19:42:52 +02:00
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
|
|
config = function()
|
|
|
|
local null_ls = require 'null-ls'
|
|
|
|
|
|
|
|
null_ls.setup {
|
|
|
|
sources = {
|
|
|
|
-- general
|
|
|
|
null_ls.builtins.code_actions.gitsigns,
|
|
|
|
-- python
|
|
|
|
-- null_ls.builtins.diagnostics.pylint,
|
|
|
|
null_ls.builtins.formatting.black,
|
2023-10-08 16:42:56 +02:00
|
|
|
-- null_ls.builtins.formatting.isort,
|
2023-06-16 17:26:11 +02:00
|
|
|
null_ls.builtins.diagnostics.ruff,
|
2023-05-19 19:42:52 +02:00
|
|
|
-- typescript
|
|
|
|
null_ls.builtins.formatting.prettier,
|
|
|
|
-- lua
|
|
|
|
null_ls.builtins.formatting.stylua,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
}
|