Skip to content
akiyosi edited this page Jul 9, 2022 · 15 revisions

How can I create an external float window?

The easiest way to do this is to input <C-W>ge in normal mode while the window is split. Or, it can be created using the nvim_open_win API. It is also possible to externalize or unexternalize an existing float window with the nvim_win_set_config API.

e.g.

:call nvim_open_win(bufnr('%'), v:true, { 'external': v:true, 'width': 50, 'height': 20 })
:call nvim_win_set_config(0, {'external': v:false, 'width':50, 'height':10})

Which settings are impacting performance?

If you change the following settings from the default values, there will be some impact on performance. Of course, the default values will give you better performance.

[Editor]
BorderlessWindow = true   # default is false
Transparent = 0.8  # default is 1.0
CachedDrawing = false  # default is true
IndentGuide = true  # default is true, also you can change the setting with GonvimIndentGuide command.
DrawBorderForFloatWindow = true  # default is false
DrawShadowForFloatWindow = true  # default is false

[Cursor]
SmoothMove = true  # default is false, also you can change the setting with GonvimSmoothCursor command

[Statusline]
Visible = true  # default is false

[ScrollBar]
Visible = true  # default is false

[Minimap]
Visible = true  # default is false

[SideBar]
DropShadow = true  # default is false

How to set an application icon in linux?

Modify Exec and Icon in the goneovim.desktop file, and register on the desktop or the dock.

Exec=/path/to/goneovim/goneovim
Icon=/path/to/goneovim/goneovim.ico

The application crashes when attempting to connect to a remote nvim using --ssh option

Check if you can connect to the remote nvim using the following command in a terminal.

ssh user@targethost /bin/bash --login -c nvim

If you are unable to connect, you should open .bash_profile in the home directory of the connecting user on the remote host and make sure that the $PATH is properly set for nvim binary at login.

In addition, the following problems may occur in Windows.

https://github.com/PowerShell/Win32-OpenSSH/issues/1088

If this is the case, you can try an ssh connection with goneovim after running the following in cmd.exe.

mkdir \dev
echo x > \dev\tty