feat: use symbols for LSP events instead of letters
This commit is contained in:
parent
9744726940
commit
e2d9536c18
1 changed files with 16 additions and 0 deletions
|
|
@ -72,6 +72,22 @@ return {
|
||||||
{ "williamboman/mason-lspconfig.nvim", tag = "stable" },
|
{ "williamboman/mason-lspconfig.nvim", tag = "stable" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
|
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 = hl })
|
||||||
|
end
|
||||||
|
vim.diagnostic.config({
|
||||||
|
update_in_insert = true,
|
||||||
|
signs = true,
|
||||||
|
virtual_text = {
|
||||||
|
prefix = "", -- Could be '●', '▎', 'x'
|
||||||
|
source = "if_many",
|
||||||
|
},
|
||||||
|
float = {
|
||||||
|
source = "if_many",
|
||||||
|
},
|
||||||
|
})
|
||||||
-- This is where all the LSP shenanigans will live
|
-- This is where all the LSP shenanigans will live
|
||||||
local lsp_zero = require("lsp-zero")
|
local lsp_zero = require("lsp-zero")
|
||||||
lsp_zero.extend_lspconfig()
|
lsp_zero.extend_lspconfig()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue