diff options
Diffstat (limited to 'run_vim.py')
-rwxr-xr-x | run_vim.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -43,6 +43,8 @@ nvim = neovim.attach('socket', path=nvim_socket) existing_buffers = get_listed_buffers(nvim) if '--float' in sys.argv: + + float_title = filenames[0] if len(filenames) > 0 else "" nvim.command( 'call nvim_open_win(0, 1, {' + "'relative': 'editor'," + @@ -53,7 +55,7 @@ if '--float' in sys.argv: "'anchor': 'NW'," + "'style': 'minimal'," + "'border': 'single'," + - "'title': [['" + filenames[0] + "', 'Statement']]" + + "'title': [['" + float_title + "', 'Statement']]" + "})"); nvim.command("set winhighlight=Normal:Normal") else: |