diff options
| author | Robert Günzler <r@gnzler.io> | 2022-05-27 13:00:28 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-05-27 13:16:15 +0200 |
| commit | 4ffb2681870dba1f9e09ef734ace2c90a03b983c (patch) | |
| tree | fec7cdd3f2d035c263552c2d856377e638c0610a /.vim/lua | |
| parent | 7c3d7fc9225572d16a85e0a96a6a7f9c37cc463f (diff) | |
vim: update null-ls config
Diffstat (limited to '.vim/lua')
| -rw-r--r-- | .vim/lua/plugins.lua | 34 |
1 files changed, 7 insertions, 27 deletions
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, } |