aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Mertz <jean@mertz.fm>2019-09-06 23:48:03 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-09-06 14:48:03 -0700
commit638f2b6dee7439de303bea12dec80240617e8034 (patch)
tree486b2cbcc2fd8735695ec437c942a5ca54bfeb3a
parent1f119d41535888af386a4a4a4e27a328ec7adb75 (diff)
downloadrneovim-638f2b6dee7439de303bea12dec80240617e8034.tar.gz
rneovim-638f2b6dee7439de303bea12dec80240617e8034.tar.bz2
rneovim-638f2b6dee7439de303bea12dec80240617e8034.zip
termdebug.vim: use style=minimal in popups #10904
- line numbers weren't hidden (which means the variable is cut off, as the number column isn't considered when calculating the width of the float). - spurious duplicate line to disable signcolumn, and nonumber was indeed missed when porting the original implementation to Neovim.
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index a6990d40de..6288782019 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -685,10 +685,9 @@ function! s:OpenHoverPreview(lines, filetype) abort
\ 'col': col,
\ 'width': width,
\ 'height': height,
+ \ 'style': 'minimal',
\ })
- call nvim_win_set_option(float_win_id, 'relativenumber', v:false)
- call nvim_win_set_option(float_win_id, 'signcolumn', 'no')
- call nvim_win_set_option(float_win_id, 'signcolumn', 'no')
+
if a:filetype isnot v:null
call nvim_win_set_option(float_win_id, 'filetype', a:filetype)
endif