From 4ffb2681870dba1f9e09ef734ace2c90a03b983c Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 27 May 2022 13:00:28 +0200 Subject: vim: update null-ls config --- .vim/lua/plugins.lua | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) (limited to '.vim') diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 9b33b56..9efd513 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -384,34 +384,14 @@ return require('packer').startup({function() nls.setup { -- debug = true, sources = { - nls.builtins.diagnostics.shellcheck, -- *sh - -- nls.builtins.formatting.clang_format, -- c* - -- nls.builtins.formatting.gofumpt, -- go - -- nls.builtins.formatting.json_tool, -- json - -- nls.builtins.formatting.rustfmt, -- rust - nls.builtins.formatting.shfmt, -- *sh + nls.builtins.diagnostics.shellcheck, + nls.builtins.formatting.shfmt, nls.builtins.formatting.yapf, -- python - -- h.make_builtin({ - -- method = nls.methods.DIAGNOSTICS, - -- filetypes = { 'go' }, - -- generator_opts = { - -- command = 'sh', - -- args = { - -- '-c', - -- 'golangci-lint run --fix=false --out-format=tab -E gocritic | grep ^$RELNAME', - -- }, - -- to_stdin = false, - -- check_exit_code = {0, 1}, - -- format = 'line', - -- on_output = h.diagnostics.from_patterns({ - -- { - -- pattern = [[(.+):(%d+):(%d+)%s+([%w%_%-]+)%s+(.*)]], - -- groups = { 'data', 'row', 'col', 'source', 'message' }, - -- } - -- }) - -- }, - -- factory = h.generator_factory, - -- }) + -- nls.builtins.formatting.clang_format, + -- nls.builtins.formatting.gofumpt, + -- nls.builtins.formatting.json_tool, + -- nls.builtins.formatting.rustfmt, + -- nls.builtins.formatting.stylua, }, on_attach = require('lsp').my_attach, } -- cgit 1.4.1