From d577f2c462a4606a729bba24dc14f340b7b04884 Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Fri, 2 Jun 2023 20:51:12 +0200 Subject: [PATCH] added diagnostic-languageservers --- nvim-config/coc-settings.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/nvim-config/coc-settings.json b/nvim-config/coc-settings.json index 3d033b1..7d6b19d 100644 --- a/nvim-config/coc-settings.json +++ b/nvim-config/coc-settings.json @@ -7,5 +7,29 @@ "filetypes": ["haskell", "lhaskell"] } }, - "coc.source.iced.enable": true + "coc.source.iced.enable": true, + "diagnostic-languageserver.filetypes": { + "vim": "vint", + "email": "languagetool", + "markdown": [ "write-good", "markdownlint" ], + "sh": "shellcheck", + "bash": "shellcheck", + "elixir": ["mix_credo", "mix_credo_compile"], + "eelixir": ["mix_credo", "mix_credo_compile"], + "php": ["phpstan", "psalm"], + "yaml": [ "yamllint" ], + "cmake": [ "cmake-lint", "cmakelint" ], + "systemd": "systemd-analyze" + }, + "diagnostic-languageserver.formatFiletypes": { + "dart": "dartfmt", + "elixir": "mix_format", + "eelixir": "mix_format", + "python": ["black", "isort"], + "lua": "lua-format", + "sh": "shfmt", + "bash": "shfmt", + "blade": "blade-formatter", + "cmake": "cmake-format" + } }