nvim/lua/plugins/null_ls.lua

25 lines
651 B
Lua
Raw Normal View History

2023-05-19 19:42:52 +02:00
return {
-- inject lsp formatting, diagonstics etc
'jose-elias-alvarez/null-ls.nvim',
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,
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,
}