diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-07-29 14:50:14 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-07-29 14:50:14 +0100 |
commit | 5c6670ec79e294e5d847a063f6c74f23afa84c11 (patch) | |
tree | 012b4de0e9cc8108453890c452a4feb49ae37d74 | |
parent | a3a82e146799bf6810ff5e09aa8518accfd2b81d (diff) | |
download | dotnvim-5c6670ec79e294e5d847a063f6c74f23afa84c11.tar.gz dotnvim-5c6670ec79e294e5d847a063f6c74f23afa84c11.zip |
Better UI by adding a border in floating windows
-rw-r--r-- | lsp.lua | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -32,6 +32,20 @@ for type, icon in pairs(signs) do vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) end +-- better UI +vim.lsp.handlers["textDocument/hover"] = vim.lsp.with( + vim.lsp.handlers.hover, { + -- Use a sharp border with `FloatBorder` highlights + border = "single" + } +) +vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with( + vim.lsp.handlers.signature_help, { + -- Use a sharp border with `FloatBorder` highlights + border = "single" + } +) + -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches local servers = { |