summaryrefslogtreecommitdiff
path: root/lua/user/lsp/null-ls.lua
diff options
context:
space:
mode:
authorchristianchiarulli <chrisatmachine@gmail.com>2022-01-02 15:13:39 -0500
committerchristianchiarulli <chrisatmachine@gmail.com>2022-01-02 15:13:39 -0500
commit8309138032f1bcd6eeb9586994994696f4786204 (patch)
tree810f91cc9d0e0006bee45039c55295e660f69b36 /lua/user/lsp/null-ls.lua
parent65466d0b009251f5dfc745abfac9540f2b597eb8 (diff)
updates for video
Diffstat (limited to 'lua/user/lsp/null-ls.lua')
-rw-r--r--lua/user/lsp/null-ls.lua21
1 files changed, 11 insertions, 10 deletions
diff --git a/lua/user/lsp/null-ls.lua b/lua/user/lsp/null-ls.lua
index c7d40fd..ec79994 100644
--- a/lua/user/lsp/null-ls.lua
+++ b/lua/user/lsp/null-ls.lua
@@ -1,6 +1,6 @@
local null_ls_status_ok, null_ls = pcall(require, "null-ls")
if not null_ls_status_ok then
- return
+ return
end
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
@@ -8,12 +8,13 @@ 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.stylua,
- diagnostics.flake8
- },
-})
+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,
+ },
+}