The Neovim built by this PKGBUILD currently does not work fully. Neovim now by-default depends on some bundled TreeSitter parsers (in particular, for LSP hover, it now needs the Markdown treesitter parser ^.^), and this PKGBUILD doesn't currently build those default bundled treesitter parsers.
To fix it, it should hopefully be relatively simple - the neovim github provides instructions on how to include only one or two bundled deps: https://github.com/neovim/neovim/wiki/Building-Neovim#how-to-build-without-bundled-dependencies
The relevant CMake define to use on the dependencies CMake dir (from looking in https://github.com/neovim/neovim/blob/master/cmake.deps/CMakeLists.txt ^.^) should be -DUSE_BUNDLED=OFF -DUSE_BUNDLED_TS_PARSERS
Edit: In particular, it gives errors when trying to use LSP hover, because it expects the markdown
and markdown_inner
parsers to be installed :(
Edit 2: This code in build()
fixes the problem for me ^.^
cmake -S"$_pkgname/cmake.deps" -B"$_pkgname/.deps" \
-GNinja \
-DUSE_BUNDLED=OFF \
-DUSE_BUNDLED_TS_PARSERS=ON
cmake --build "$_pkgname/.deps"
cmake -S"$_pkgname" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
It ends up with the cmake --install
putting the parsers in /usr/lib/nvim/parser
, but I think that's on the runtimepath
given that it still makes neovim work correctly :)
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)