coc->native-lsp ui fixes

This commit is contained in:
2026-07-30 21:45:37 -05:00
parent 24594567ef
commit 16e24146e5
4 changed files with 15 additions and 9 deletions
+4 -4
View File
@@ -612,7 +612,7 @@ if not NV_DARCULA_ENABLE_COC then
{"i", "n"}, {"i", "n"},
"<C-s>", "<C-s>",
function() function()
vim.lsp.buf.signature_help({border = "rounded"}) vim.lsp.buf.signature_help({border = "rounded", max_width = 120})
end end
) )
end end
@@ -639,7 +639,7 @@ if not NV_DARCULA_ENABLE_COC then
km.vmap( km.vmap(
km.leader "ac", km.leader "ac",
function() function()
vim.lsp.buf.range_code_action(nil, nil, nil) vim.lsp.buf.code_action()
end, end,
opts opts
) )
@@ -647,7 +647,7 @@ if not NV_DARCULA_ENABLE_COC then
km.vmap( km.vmap(
km.leader "aw", km.leader "aw",
function() function()
vim.lsp.buf.range_code_action(nil, nil, nil) vim.lsp.buf.code_action()
end, end,
opts opts
) )
@@ -655,7 +655,7 @@ if not NV_DARCULA_ENABLE_COC then
km.vmap( km.vmap(
km.leader "ca", km.leader "ca",
function() function()
vim.lsp.buf.range_code_action(nil, nil, nil) vim.lsp.buf.code_action()
end, end,
opts opts
) )
+8 -2
View File
@@ -28,6 +28,7 @@ vim.diagnostic.config(
{ {
float = { float = {
border = "rounded", border = "rounded",
max_width = 120,
source = "if_many" source = "if_many"
}, },
signs = { signs = {
@@ -35,7 +36,7 @@ vim.diagnostic.config(
text = { text = {
[vim.diagnostic.severity.ERROR] = symbols.line.errors, [vim.diagnostic.severity.ERROR] = symbols.line.errors,
[vim.diagnostic.severity.WARN] = symbols.line.warnings, [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 [vim.diagnostic.severity.HINT] = symbols.line.hints
}, },
numhl = { numhl = {
@@ -45,7 +46,12 @@ vim.diagnostic.config(
[vim.diagnostic.severity.HINT] = "DiagnosticLineNrHint" [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 { require("mini.completion").setup {
delay = {completion = 100, info = 100, signature = 50}, delay = {completion = 100, info = 100, signature = 50},
window = { window = {
info = {height = 25, width = 80, border = "rounded"}, info = {height = 25, width = 120, border = "rounded"},
signature = {height = 25, width = 80, border = "rounded"} signature = {height = 25, width = 120, border = "rounded"}
}, },
lsp_completion = { lsp_completion = {
auto_setup = true, auto_setup = true,
+1 -1
View File
@@ -285,7 +285,7 @@ NV_Darcula_Show_Documentation = function()
return return
end end
vim.lsp.buf.hover() vim.lsp.buf.hover({border = "rounded", max_width = 120})
end end
NV_Darcula_Show_Man_Documentation = function(visual) NV_Darcula_Show_Man_Documentation = function(visual)