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