From 88369e7cd142925b732dced0b2262f8b6c099533 Mon Sep 17 00:00:00 2001 From: Yaser Alraddadi Date: Tue, 15 Oct 2024 07:23:16 +0300 Subject: [PATCH] update --- init.lua | 2 +- lua/custom/plugins/diagflow.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/diagflow.lua diff --git a/init.lua b/init.lua index 1128bccc..d6fca9d2 100644 --- a/init.lua +++ b/init.lua @@ -251,7 +251,7 @@ vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers[' vim.keymap.set('i', '', vim.lsp.buf.signature_help) -- hide diagnostic -vim.diagnostic.config { virtual_text = false } +-- vim.diagnostic.config { virtual_text = false } -- Enable number in netrw vim.g.netrw_bufsettings = 'noma nomod nu rnu nobl nowrap ro' diff --git a/lua/custom/plugins/diagflow.lua b/lua/custom/plugins/diagflow.lua new file mode 100644 index 00000000..110c39aa --- /dev/null +++ b/lua/custom/plugins/diagflow.lua @@ -0,0 +1,11 @@ +return { + { + 'dgagn/diagflow.nvim', + -- event = 'LspAttach', This is what I use personnally and it works great + opts = { + placement = 'inline', + scope = 'cursor', -- 'cursor', 'line' this changes the scope, so instead of showing errors under the cursor, it shows errors on the entire line. + inline_padding_left = 3, + }, + }, +}