diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-04-05 06:43:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 15:43:08 +0200 |
commit | 2c4e9c5245285b5a0a76e044b72481dfe6c468ab (patch) | |
tree | 85faa577dfa7f60e4019033316cd9df4f5e86227 /runtime/lua/vim/lsp/handlers.lua | |
parent | 9fbeaf7771db1855414099c75b75793be8776032 (diff) | |
download | rneovim-2c4e9c5245285b5a0a76e044b72481dfe6c468ab.tar.gz rneovim-2c4e9c5245285b5a0a76e044b72481dfe6c468ab.tar.bz2 rneovim-2c4e9c5245285b5a0a76e044b72481dfe6c468ab.zip |
lsp: floating window improvements (#14207)
* remove left/right padding feature from trim_and_pad
* use invisible borders by default on floating windows
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index eacbd90077..f52b76fa05 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -258,9 +258,7 @@ M['textDocument/hover'] = function(_, method, result) -- return { 'No information available' } return end - local bufnr, winnr = util.fancy_floating_markdown(markdown_lines, { - pad_left = 1; pad_right = 1; - }) + local bufnr, winnr = util.fancy_floating_markdown(markdown_lines) util.close_preview_autocmd({"CursorMoved", "BufHidden", "InsertCharPre"}, winnr) return bufnr, winnr end) |