From 97b76f3188c64d4dacfc17c7c1543f775a3fb8e8 Mon Sep 17 00:00:00 2001 From: qasimwarraich <37380474+qasimwarraich@users.noreply.github.com> Date: Wed, 21 Jun 2023 13:42:03 +0200 Subject: [PATCH] change default `lsp_diag_virtual_text` prefix to nvim default (#353) --- README.md | 2 +- doc/go.txt | 1 + lua/go.lua | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e78528..ab223e4 100644 --- a/README.md +++ b/README.md @@ -775,7 +775,7 @@ require('go').setup({ lsp_diag_hdlr = true, -- hook lsp diag handler lsp_diag_underline = true, -- virtual text setup - lsp_diag_virtual_text = { space = 0, prefix = "" }, + lsp_diag_virtual_text = { space = 0, prefix = '■' }, lsp_diag_signs = true, lsp_diag_update_in_insert = false, lsp_document_formatting = true, diff --git a/doc/go.txt b/doc/go.txt index c16a222..f6eb27b 100644 --- a/doc/go.txt +++ b/doc/go.txt @@ -390,6 +390,7 @@ You can setup go.nvim with following options: lsp_keymaps = true, -- true: apply default lsp keymaps lsp_codelens = true, lsp_diag_hdlr = true, -- hook lsp diag handler + lsp_diag_virtual_text = { space = 0, prefix = '■' }, -- lsp virtual text format lsp_inlay_hints = { enable = true, diff --git a/lua/go.lua b/lua/go.lua index 9c4f713..87f569e 100644 --- a/lua/go.lua +++ b/lua/go.lua @@ -45,7 +45,7 @@ _GO_NVIM_CFG = { lsp_diag_hdlr = true, -- hook lsp diag handler lsp_diag_underline = true, -- virtual text setup - lsp_diag_virtual_text = { space = 0, prefix = '' }, + lsp_diag_virtual_text = { space = 0, prefix = '■' }, lsp_diag_signs = true, lsp_inlay_hints = { enable = true,