|
|
@ -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, |
|
|
|
} |