Skip to content

Commit

Permalink
fix(lsp): update signs config to new neovim spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Feb 5, 2024
1 parent ec42ddc commit d2872d8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lua/lsp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ vim.diagnostic.config({
end
},
severity_sort = true,
signs = true,
signs = {
text = {
[vim.diagnostic.severity.ERROR] = '',
[vim.diagnostic.severity.WARN] = '',
[vim.diagnostic.severity.INFO] = '',
[vim.diagnostic.severity.HINT] = '',
}
},
underline = true,
update_in_insert = false,
virtual_text = {
Expand All @@ -119,13 +126,6 @@ vim.diagnostic.config({

-- UI

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

local lspui_ok, lspui = pcall(require, 'lspconfig.ui.windows')
if not lspui_ok then
return
Expand Down

0 comments on commit d2872d8

Please sign in to comment.