Lyude / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
160 stars 10 forks source link

neovim-gtk

CI

GTK ui for neovim written in rust using gtk-rs bindings. With ligatures support. This project began as a fork of @daa84's neovim-gtk.

There are a very large number of improvements from @daa84's version, including:

Note that I haven't set up the wiki pages for this repo yet, so wiki links still go to daa84's wiki repo.

Screenshot

Main Window

For more screenshots and description of basic usage see wiki

Configuration

To setup font add next line to ginit.vim

call rpcnotify(1, 'Gui', 'Font', 'DejaVu Sans Mono 12')

for more details see wiki

Install

From sources

First check build prerequisites

By default to /usr/local:

make install

Or to some custom path:

make PREFIX=/some/custom/path install

Fedora

TODO

Arch Linux

TODO

openSUSE

TODO

Windows

TODO

Build prerequisites

Linux

First install the GTK development packages. On Debian/Ubuntu derivatives this can be done as follows:

apt install libgtk-4-dev

On Fedora:

dnf install atk-devel glib2-devel pango-devel gtk4-devel

Then install the latest rust compiler, best with the rustup tool. The build command:

cargo build --release

As of writing this (Dec 16, 2022) the packaged rust tools in Fedora also work for building.

Windows

Neovim-gtk can be compiled using MSYS2 GTK packages. In this case use 'windows-gnu' rust toolchain.

SET PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig
cargo build --release