daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Can't pass commands via `nvim-gtk +COMMAND` #104

Closed fgrsnau closed 6 years ago

fgrsnau commented 6 years ago

Usually, vim evaluates commands provided by the + switch. This also works for gvim and nvim-qt for example.

Can this behaviour be implemented in nvim-gtk?

Edit: nvim-qt implements this by simply forwarding additional arguments to nvim.

daa84 commented 6 years ago

you can pass addition arguments to nvim with --

fgrsnau commented 6 years ago

Can you provide some example? As far as I can see this is not really documented anywhere.

The following command does not work for me: nvim-gtk -- "+set tw=72 fo+=aw" It just opens a buffer for the file +set tw=72 fo+=aw.

daa84 commented 6 years ago

This is latest PR merge, new feature 😃 https://github.com/daa84/neovim-gtk/wiki/Configuration#command-line

fgrsnau commented 6 years ago

Oh, I built neovim-gtk shortly before this PR got merged. This works as expected now! :)