Coder Social home page Coder Social logo

Support --server option about neovim-gtk HOT 9 OPEN

daa84 avatar daa84 commented on August 14, 2024 5
Support --server option

from neovim-gtk.

Comments (9)

daa84 avatar daa84 commented on August 14, 2024 1

Looks like simple task πŸ˜„

from neovim-gtk.

unclechu avatar unclechu commented on August 14, 2024 1

I personally have this helper script to start neovim daemon:
https://github.com/unclechu/neovimrc/blob/40c6237f0ca30754f6254c19e7a7122aff32039d/apps/nvimd
And I start new daemon by command like this:

nvimd some-name

And then I can copy-paste socket path from this script output:

Neovim server socket file path: /tmp/unclechu-nvim-some-name
Neovim binary: nvim

from neovim-gtk.

unclechu avatar unclechu commented on August 14, 2024

Maybe additional info will help.

An example how to start "headless" neovim server:

env NVIM_LISTEN_ADDRESS="$HOME/.vim-server-socket-file-that-will-be-created" nvim --headless

An example how to connect to this neovim server with neovim-qt (can be attached and detached multiple times):

nvim-qt --server="$HOME/.vim-server-socket-file-that-will-be-created"

from neovim-gtk.

daa84 avatar daa84 commented on August 14, 2024

This became more complicated due to functionality changes. Gui file browser does not support remote connection. Also Some settings passed to nvim at start (g:GtkGuiLoaded, neovim runtime path and plugins list).

from neovim-gtk.

unclechu avatar unclechu commented on August 14, 2024

Sad, but for me it would be okay to get it with extra features disabled (such as file browser) when working in this mode. I'm personally would be really happy to see this feature working.

from neovim-gtk.

shaform avatar shaform commented on August 14, 2024

+1 for this feature. I think the coolest part is that this enables us to connect to nvim sessions in remote servers via ssh. By doing so we are no longer being restricted by text-based terminal using using remote servers.

from neovim-gtk.

unclechu avatar unclechu commented on August 14, 2024

I just found this commit: https://github.com/bkoropoff/neovim-gtk/commit/41b6a45eecf74cf0b4d44faa1e85512efcbd3f4e
It seems that person was trying to implement it (I personally haven't tested this yet).

from neovim-gtk.

daa84 avatar daa84 commented on August 14, 2024

yes, good starting point to implement server functionality. But some "local" logic was removed.

from neovim-gtk.

unclechu avatar unclechu commented on August 14, 2024

I'm personally okay with that local logic being removed since I personally don't use any of those features, only ligatures, font size changing, I turn off all the GUI panels. But I really need that external server feature. I really like ligatures support, but I really want my session to live when I accidentally close the window, so now I'm using neovim just inside tmux to make it work this way, giving up ligatures. I hope someday it will work in neovim-gtk, I just wish it would happen earlier than I find enough free time to implement it by myself.

from neovim-gtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.