coc->native-lsp ui fixes
This commit is contained in:
@@ -612,7 +612,7 @@ if not NV_DARCULA_ENABLE_COC then
|
||||
{"i", "n"},
|
||||
"<C-s>",
|
||||
function()
|
||||
vim.lsp.buf.signature_help({border = "rounded"})
|
||||
vim.lsp.buf.signature_help({border = "rounded", max_width = 120})
|
||||
end
|
||||
)
|
||||
end
|
||||
@@ -639,7 +639,7 @@ if not NV_DARCULA_ENABLE_COC then
|
||||
km.vmap(
|
||||
km.leader "ac",
|
||||
function()
|
||||
vim.lsp.buf.range_code_action(nil, nil, nil)
|
||||
vim.lsp.buf.code_action()
|
||||
end,
|
||||
opts
|
||||
)
|
||||
@@ -647,7 +647,7 @@ if not NV_DARCULA_ENABLE_COC then
|
||||
km.vmap(
|
||||
km.leader "aw",
|
||||
function()
|
||||
vim.lsp.buf.range_code_action(nil, nil, nil)
|
||||
vim.lsp.buf.code_action()
|
||||
end,
|
||||
opts
|
||||
)
|
||||
@@ -655,7 +655,7 @@ if not NV_DARCULA_ENABLE_COC then
|
||||
km.vmap(
|
||||
km.leader "ca",
|
||||
function()
|
||||
vim.lsp.buf.range_code_action(nil, nil, nil)
|
||||
vim.lsp.buf.code_action()
|
||||
end,
|
||||
opts
|
||||
)
|
||||
|
||||
@@ -28,6 +28,7 @@ vim.diagnostic.config(
|
||||
{
|
||||
float = {
|
||||
border = "rounded",
|
||||
max_width = 120,
|
||||
source = "if_many"
|
||||
},
|
||||
signs = {
|
||||
@@ -35,7 +36,7 @@ vim.diagnostic.config(
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = symbols.line.errors,
|
||||
[vim.diagnostic.severity.WARN] = symbols.line.warnings,
|
||||
[vim.diagnostic.severity.INFO] = symbols.line.hints,
|
||||
[vim.diagnostic.severity.INFO] = symbols.line.info,
|
||||
[vim.diagnostic.severity.HINT] = symbols.line.hints
|
||||
},
|
||||
numhl = {
|
||||
@@ -45,7 +46,12 @@ vim.diagnostic.config(
|
||||
[vim.diagnostic.severity.HINT] = "DiagnosticLineNrHint"
|
||||
}
|
||||
},
|
||||
virtual_text = NV_DARCULA_ENABLE_VIRTUAL_TEXT
|
||||
virtual_text =
|
||||
utils.iff(
|
||||
NV_DARCULA_ENABLE_VIRTUAL_TEXT,
|
||||
{prefix = symbols.line.info .. " "},
|
||||
false
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ end
|
||||
require("mini.completion").setup {
|
||||
delay = {completion = 100, info = 100, signature = 50},
|
||||
window = {
|
||||
info = {height = 25, width = 80, border = "rounded"},
|
||||
signature = {height = 25, width = 80, border = "rounded"}
|
||||
info = {height = 25, width = 120, border = "rounded"},
|
||||
signature = {height = 25, width = 120, border = "rounded"}
|
||||
},
|
||||
lsp_completion = {
|
||||
auto_setup = true,
|
||||
|
||||
@@ -285,7 +285,7 @@ NV_Darcula_Show_Documentation = function()
|
||||
return
|
||||
end
|
||||
|
||||
vim.lsp.buf.hover()
|
||||
vim.lsp.buf.hover({border = "rounded", max_width = 120})
|
||||
end
|
||||
|
||||
NV_Darcula_Show_Man_Documentation = function(visual)
|
||||
|
||||
Reference in New Issue
Block a user