diff options
| author | jdhao <jdhao@hotmail.com> | 2021-07-17 00:47:19 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-07-17 00:47:19 +0800 |
| commit | 155d9a1f9b4550a65e6a49db72bbb074e43b46c5 (patch) | |
| tree | ecd6863fcf4051f1df929808920ffca2fd3363ea | |
| parent | dc6a510526c3e3e38f4eb23149e0ec89cd03118a (diff) | |
More update on nvim-lsp config
Change border from sharp corner to curved corner.
| -rw-r--r-- | lua/config/lsp.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 028ec8e..715a0bc 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -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) 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 vim.api.nvim_exec([[ hi link LspReferenceRead Visual @@ -146,13 +146,13 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.handlers["textDocument/hover"] = vim.lsp.with( vim.lsp.handlers.hover, { border = { - {"┌", "FloatBorder"}, + {"╭", "FloatBorder"}, {"─", "FloatBorder"}, - {"┐", "FloatBorder"}, + {"╮", "FloatBorder"}, {"│", "FloatBorder"}, - {"┘", "FloatBorder"}, + {"╯", "FloatBorder"}, {"─", "FloatBorder"}, - {"└", "FloatBorder"}, + {"╰", "FloatBorder"}, {"│", "FloatBorder"} } } |
