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

View file

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