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, + }, + }, +}