mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(lsp): properly check that diagnostics virtual_text is a table. Fixes #618
This commit is contained in:
parent
ef21bea975
commit
17fe32e428
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ return {
|
||||||
vim.fn.sign_define(name, { text = icon, texthl = name, numhl = "" })
|
vim.fn.sign_define(name, { text = icon, texthl = name, numhl = "" })
|
||||||
end
|
end
|
||||||
|
|
||||||
if opts.diagnostics.virtual_text.prefix == "icons" then
|
if type(opts.diagnostics.virtual_text) == "table" and opts.diagnostics.virtual_text.prefix == "icons" then
|
||||||
opts.diagnostics.virtual_text.prefix = vim.fn.has("nvim-0.10.0") == 0 and "●"
|
opts.diagnostics.virtual_text.prefix = vim.fn.has("nvim-0.10.0") == 0 and "●"
|
||||||
or function(diagnostic)
|
or function(diagnostic)
|
||||||
local icons = require("lazyvim.config").icons.diagnostics
|
local icons = require("lazyvim.config").icons.diagnostics
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue