Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PyGTK3 frontend to Neovim with some visual GUI elements.

License

NotificationsYou must be signed in to change notification settings

rliang/nvim-pygtk3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyGTK3 frontend to Neovim with some visual GUI elements.

  • Provides GTK's clipboard (no need for xclip/xsel)
  • Buffers on header bar
  • GUI Tabs
  • Overlay scrollbars
  • Applies GTK's light/dark themes according to&bg
  • Applies font from:GuiFont, or from GSettings'org.gnome.desktop.interface:monospace-font-name
  • Customizable with Python scripts

Preview

Installation

Requirements:

  • python 3.6+
  • python-setuptools (make)
  • python-neovim
  • python-gobject
  • vte3

Per-user:

$ python setup.py install --user --root=/

System-wide:

$ sudo python setup.py install --root=/

Python scripts

Scripts in$XDG_CONFIG_HOME/nvim_pygtk3/*.py areexec'd at startup,exposing the following globals:

  • connect: Utility wrapper to connect GObject signals.
  • window: The GTK top-level window.Docs
    • window.terminal: The VTE terminal that hosts neovim.Docs
    • window.switcher: The GtkStackSwitcher that displays buffers.Docs
    • window.notebook: The GtkNotebook that displays tabs.Docs
    • window.viewport: The GtkViewport that holds the terminal.Docs

Thewindow object has the following additional signals:

  • nvim-setup: Emitted when neovim has started.
  • nvim-notify: Emitted when neovim has notified the GUI.
  • nvim-request: Emitted when neovim has requested the GUI.

Example script~/.config/nvim_pygtk3/a.py:

@connect(window,'nvim-setup')defa(nvim):nvim.command(f'call rpcnotify({nvim.channel_id}, "hello", "world")')@connect(window,'nvim-notify')defb(nvim,event,args):ifevent=='hello':print('hello',args)@connect(window.terminal,'cursor-moved')defc():print('cursor moved!')

About

PyGTK3 frontend to Neovim with some visual GUI elements.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp