From 638f2b6dee7439de303bea12dec80240617e8034 Mon Sep 17 00:00:00 2001 From: Jean Mertz Date: Fri, 6 Sep 2019 23:48:03 +0200 Subject: 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. --- runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime') 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 -- cgit