mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
More update on nvim-lsp config
Change border from sharp corner to curved corner.
This commit is contained in:
parent
dc6a510526
commit
155d9a1f9b
@ -34,7 +34,7 @@ local on_attach = function(client, bufnr)
|
|||||||
buf_set_keymap("x", "<space>f", "<cmd>lua vim.lsp.buf.range_formatting()<CR><ESC>", opts)
|
buf_set_keymap("x", "<space>f", "<cmd>lua vim.lsp.buf.range_formatting()<CR><ESC>", opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set autocommands conditional on server_capabilities
|
-- The blow command will highlight the current variable and its usages in the buffer.
|
||||||
if client.resolved_capabilities.document_highlight then
|
if client.resolved_capabilities.document_highlight then
|
||||||
vim.api.nvim_exec([[
|
vim.api.nvim_exec([[
|
||||||
hi link LspReferenceRead Visual
|
hi link LspReferenceRead Visual
|
||||||
@ -146,13 +146,13 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
|||||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(
|
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(
|
||||||
vim.lsp.handlers.hover, {
|
vim.lsp.handlers.hover, {
|
||||||
border = {
|
border = {
|
||||||
{"┌", "FloatBorder"},
|
{"╭", "FloatBorder"},
|
||||||
{"─", "FloatBorder"},
|
{"─", "FloatBorder"},
|
||||||
{"┐", "FloatBorder"},
|
{"╮", "FloatBorder"},
|
||||||
{"│", "FloatBorder"},
|
{"│", "FloatBorder"},
|
||||||
{"┘", "FloatBorder"},
|
{"╯", "FloatBorder"},
|
||||||
{"─", "FloatBorder"},
|
{"─", "FloatBorder"},
|
||||||
{"└", "FloatBorder"},
|
{"╰", "FloatBorder"},
|
||||||
{"│", "FloatBorder"}
|
{"│", "FloatBorder"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user