add borders to diagnostics, filter out vtsls inlayHint errors

This commit is contained in:
Andy Teijelo 2024-07-14 12:43:31 -04:00
parent c6eb8cf13d
commit 77f02a2178
2 changed files with 21 additions and 10 deletions

View file

@ -13,9 +13,9 @@ return {
-- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" })
-- vim.lsp.handlers["textDocument/signatureHelp"] =
-- vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded" })
-- vim.diagnostic.config({
-- float = { border = "rounded" },
-- })
vim.diagnostic.config({
float = { border = "rounded" },
})
end,
opts = {
-- autoformat = false,
@ -23,7 +23,9 @@ return {
update_in_insert = true,
},
setup = {
rust_analyzer = function() return true end,
rust_analyzer = function()
return true
end,
},
servers = {
yamlls = {

View file

@ -8,18 +8,27 @@ return {
cmdline = { pattern = "^:", icon = ":", lang = "vim" },
},
},
-- views = {
-- hover = {
-- border = { style = "rounded" },
-- size = { max_width = 20 },
-- },
-- },
views = {
hover = {
border = { style = "rounded" },
-- size = { max_width = 20 },
},
},
presets = {
bottom_search = true,
command_palette = false,
long_message_to_split = true,
lsp_doc_border = true,
},
routes = {
{
filter = {
event = "notify",
find = "Request textDocument/inlayHint failed",
},
opts = { skip = true },
},
},
-- lsp = {
-- progress = {
-- enabled = false