Open wezm opened 6 years ago
Thank you 😄 I'm not user of Arch so can't test it, but think I can put this instructions to README 👍 thanks
@wezm Thanks for the packaging. It works on my Manjaro Linux. However I'm still experiencing some problems.
RUST_BACKTRACE=1 nvim-gtk
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 78', src/ui_model/line.rs:204
stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: g_main_context_dispatch
14: <unknown>
15: g_main_context_iteration
16: g_application_run
17: <unknown>
18: <unknown>
19: <unknown>
20: __libc_start_main
21: <unknown>
Backtrace looks like some bug But I can check this only after about 2 weeks
Fixed. At least i think so :smile:
I just tried to use the AUR package and am getting this error: error: no default toolchain configured
.
It sounds like you have rustup installed without a default toolchain set. I had wondered about this. At the moment it think the PKGBUILD is using whatever cargo
it finds in your path rather than the Arch packaged one (that is installed as part of the dependency on rust). I'll update the PKGBUILD to use absolute paths and that should fix it.
I pushed a revised PKGBUILD
that uses the absolute path to cargo
, give that a try and see if that helps.
I have both neovim-qt
and neovim-gtk
AUR packages installed, I installed neovim-qt
first then later on neovim-gtk
, checking around this repo files I noticed that nvim_gui_shim.vim
its a file shared by both projects, when I run :scriptnames
from neovim-gtk
I get that /usr/share/nvim/runtime/plugin/nvim_gui_shim.vim
file sourced, but its the neovim-qt
version not the neovim-gtk
one, do not know where the neovim-gtk
version is installed.
Interesting. I suppose the NeovimGtk one should have a unique name. I wonder what the consequence of having two versions of the same shim in the runtime path. I suppose alternatively we could create a nvim-gui-shim package that both UIs depend upon?
This one by the neovim-qt
author seems to be.
if call simple make install
it will be placed at $(PREFIX)/share/nvim-gtk/
https://github.com/daa84/neovim-gtk/blob/a6e16d1cbdb64031855612ae25df31592cdee249/Makefile#L14
and this path added to rtp at start
There is also setting that can change this path when nvim-gtk starts https://github.com/daa84/neovim-gtk/wiki/Configuration#runtime
Ok I'll have a look into changing the package to use or mirror the Makefile behviour.
I updated the PKGBUILD
to better mirror the Makefile.
Thanks, the file now it is installed on /usr/share/nvim-gtk/runtime/nvim_gui_shim.vim
but its not sourced, according to help 'runtimepath'
:
4. In nvim/site subdirectories for each directory in $XDG_DATA_DIRS.
This is for plugins which were installed by system administrator,
but are not part of the Neovim distribution. XDG_DATA_DIRS defaults
to /usr/local/share/:/usr/share/, so system administrators are
expected to install site plugins to /usr/share/nvim/site.
So it should be installed in /usr/share/nvim/nvim-gtk
?
FYI I made a first pass at an AUR package for neovim-gtk: https://aur.archlinux.org/packages/neovim-gtk-git. This makes it easy to build and install on Arch Linux:
PS This thing is brilliant. The ligature support is fantastic and some of the best I've seen in any editor.