From c47e2121642423c68a5cca7df16cc10054fbb00a Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Thu, 15 Jun 2023 13:56:39 -0700 Subject: [PATCH] errors and warnings shouldn't get mixed up --- nix/home/programs/nvim/nvim-lspconfig.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nix/home/programs/nvim/nvim-lspconfig.lua b/nix/home/programs/nvim/nvim-lspconfig.lua index c86c06f..d1377c6 100644 --- a/nix/home/programs/nvim/nvim-lspconfig.lua +++ b/nix/home/programs/nvim/nvim-lspconfig.lua @@ -82,8 +82,8 @@ nvim_lsp.diagnosticls.setup { security = 'severity' }, securities = { - [2] = 'error', - [1] = 'warning' + [1] = 'error', + [2] = 'warning' } }, markdownlint = { @@ -131,6 +131,11 @@ nvim_lsp.diagnosticls.setup { scss = 'prettier', typescript = 'prettier', typescriptreact = 'prettier', + markdown = 'prettier', + -- This implies that you have installed a prisma-supporting plugin for + -- prettier. You could instead configure this formatter to be `npx prisma format` + -- directly, but that command doesn't seem to output in the way this + -- diagnostic server expects. prisma = 'prettier' } }