diff options
| author | gloomy-lemon-debatable <91877885+gloomy-lemon-debatable@users.noreply.github.com> | 2024-11-20 22:37:22 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-20 08:37:22 -0500 |
| commit | dadb954a7fe96619960dd972b449a8ac1f6a8455 (patch) | |
| tree | 6d38f7d60f1f1b6b7fb6aafd7d40a576cdb7faca | |
| parent | 1a0f5484efdbc401d434a3c5180caa5c80103e91 (diff) | |
| download | dots-dadb954a7fe96619960dd972b449a8ac1f6a8455.tar.gz | |
feat: Change to prepare for upcoming deprecation of configuring diagnostic-signs using sign_define() (#1232)
| -rw-r--r-- | nvim/init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 4ce35f4..e3b7b56 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -590,11 +590,12 @@ require('lazy').setup({ -- Change diagnostic symbols in the sign column (gutter) -- if vim.g.have_nerd_font then - -- local signs = { Error = '', Warn = '', Hint = '', Info = '' } + -- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' } + -- local diagnostic_signs = {} -- for type, icon in pairs(signs) do - -- local hl = 'DiagnosticSign' .. type - -- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) + -- diagnostic_signs[vim.diagnostic.severity[type]] = icon -- end + -- vim.diagnostic.config { signs = { text = diagnostic_signs } } -- end -- LSP servers and clients are able to communicate to each other what features they support. |