diff options
| author | ericmarin <maarin.eric@gmail.com> | 2026-04-29 21:12:05 +0200 |
|---|---|---|
| committer | ericmarin <maarin.eric@gmail.com> | 2026-04-29 21:14:52 +0200 |
| commit | a5d2c8d5d646673864c11f46d49412aa1c2ebae7 (patch) | |
| tree | 1153096865a877a909e8247bc06cc69849d7d178 /nvim | |
| parent | 4373c2db3d54802735105bc3ca602214d94b9f16 (diff) | |
| download | dotfiles-master.tar.gz dotfiles-master.zip | |
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/lua/plugins/nvim-lspconfig.lua | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index e464144..4c69816 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -3,11 +3,22 @@ local config = function() local capabilities = require("cmp_nvim_lsp").default_capabilities() -- setting custom signs - local signs = { Error = "", Warn = "", Hint = "", Info = "" } - for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) - end + vim.diagnostic.config({ + signs = { + text = { + [vim.diagnostic.severity.ERROR] = '', + [vim.diagnostic.severity.WARN] = '', + [vim.diagnostic.severity.HINT] = '', + [vim.diagnostic.severity.INFO] = '', + }, + linehl = { + [vim.diagnostic.severity.ERROR] = 'ErrorMsg', + }, + numhl = { + [vim.diagnostic.severity.WARN] = 'WarningMsg', + }, + }, + }) vim.api.nvim_create_autocmd('LspAttach', { callback = function(ev) |
