Compare commits
5 Commits
master
...
14-null-ls
Author | SHA1 | Date |
---|---|---|
christianchiarulli | 8309138032 | 3 years ago |
christianchiarulli | 65466d0b00 | 3 years ago |
christianchiarulli | a9f3e7f837 | 3 years ago |
christianchiarulli | efd287ffa0 | 3 years ago |
christianchiarulli | 6fddfcb743 | 3 years ago |
@ -0,0 +1,20 @@
|
||||
local null_ls_status_ok, null_ls = pcall(require, "null-ls")
|
||||
if not null_ls_status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||
local formatting = null_ls.builtins.formatting
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||
local diagnostics = null_ls.builtins.diagnostics
|
||||
|
||||
null_ls.setup {
|
||||
debug = false,
|
||||
sources = {
|
||||
formatting.prettier.with { extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } },
|
||||
formatting.black.with { extra_args = { "--fast" } },
|
||||
-- formatting.yapf,
|
||||
formatting.stylua,
|
||||
diagnostics.flake8,
|
||||
},
|
||||
}
|
Loading…
Reference in new issue