Browse Source

feat: remove square from virtual diagnostics text

master
Tovi Jaeschke-Rogers 6 months ago
parent
commit
06355150ac
1 changed files with 7 additions and 11 deletions
  1. +7
    -11
      .config/nvim/lua/tovi/plugins/lsp/lspconfig.lua

+ 7
- 11
.config/nvim/lua/tovi/plugins/lsp/lspconfig.lua View File

@ -64,21 +64,11 @@ return {
vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR })
end, opts)
-- opts.desc = "Go to previous diagnostic (error only)"
-- keymap.set("n", "<leader>pe", function()
-- vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR })
-- end, opts)
opts.desc = "Go to next diagnostic (error only)"
keymap.set("n", "]e", function()
vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR })
end, opts)
-- opts.desc = "Go to next diagnostic (error only)"
-- keymap.set("n", "<leader>ne", function()
-- vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR })
-- end, opts)
opts.desc = "Show documentation for what is under cursor"
keymap.set("n", "<leader>ld", vim.diagnostic.setqflist, opts) -- show documentation for what is under cursor
@ -102,7 +92,7 @@ return {
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 = "" })
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
lspconfig.html.setup({
@ -252,5 +242,11 @@ return {
capabilities = capabilities,
on_attach = on_attach,
})
vim.diagnostic.config({
virtual_text = {
prefix = '',
},
})
end,
}

Loading…
Cancel
Save