changeset 396:39744843446d

Use finer line symbol for LSP diagnostics
author zegervdv <zegervdv@me.com>
date Mon, 14 Jun 2021 19:07:09 +0200
parents 3f2b7b399dee
children 7086593e6c0d
files dot_config/nvim/config.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dot_config/nvim/config.lua	Mon Jun 14 18:38:01 2021 +0200
+++ b/dot_config/nvim/config.lua	Mon Jun 14 19:07:09 2021 +0200
@@ -357,10 +357,10 @@
 
   inoremap { '<c-l>', vim.lsp.buf.signature_help, silent = true }
 
-  vim.cmd [[ sign define LspDiagnosticsSignError text=▊ texthl=LspDiagnosticsSignError linehl= numhl= ]]
-  vim.cmd [[ sign define LspDiagnosticsSignWarning text=▊ texthl=LspDiagnosticsSignWarning linehl= numhl= ]]
-  vim.cmd [[ sign define LspDiagnosticsSignInformation text=▊ texthl=LspDiagnosticsSignInformation linehl= numhl= ]]
-  vim.cmd [[ sign define LspDiagnosticsSignHint text=▊ texthl=LspDiagnosticsSignHint linehl= numhl= ]]
+  vim.fn.sign_define("LspDiagnosticsSignError", { texthl = "LspDiagnosticsSignError", linehl="", numhl = "", text = "▎" })
+  vim.fn.sign_define("LspDiagnosticsSignWarning", { texthl = "LspDiagnosticsSignWarning", linehl="", numhl = "", text = "▎" })
+  vim.fn.sign_define("LspDiagnosticsSignInformation", { texthl = "LspDiagnosticsSignInformation", linehl="", numhl = "", text = "▎" })
+  vim.fn.sign_define("LspDiagnosticsSignHint", { texthl = "LspDiagnosticsSignHint", linehl="", numhl = "", text = "▎" })
 end
 
 vim.lsp.handlers['textDocument/formatting'] = function(err, _, result, _, bufnr)