fix: change max width of some floating windows
This commit is contained in:
@@ -146,6 +146,7 @@ local function setup_diagnostics()
|
||||
format = function(diagnostic)
|
||||
return string.format("%s", diagnostic.message)
|
||||
end,
|
||||
width = 80,
|
||||
},
|
||||
update_in_insert = false,
|
||||
severity_sort = true,
|
||||
|
||||
@@ -52,14 +52,14 @@ function M:init(server, bufnr)
|
||||
mode = { "n", "i" },
|
||||
lhs = "<C-k>",
|
||||
rhs = function()
|
||||
vim.lsp.buf.hover({ border = "single" })
|
||||
vim.lsp.buf.hover({ border = "single", max_width = 80 })
|
||||
end,
|
||||
},
|
||||
{
|
||||
mode = { "n", "i" },
|
||||
lhs = "<C-j>",
|
||||
rhs = function()
|
||||
vim.lsp.buf.signature_help({ border = "single" })
|
||||
vim.lsp.buf.signature_help({ border = "single", max_width = 80 })
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user