Commit Graph

279 Commits

Author SHA1 Message Date
Artturi
8b739f24a3
Merge pull request #187934 from Artturin/luasplice1 2022-08-31 16:58:55 +03:00
Guillaume Girol
38e16b192a neovim: fix plugin loading order
fixes https://github.com/NixOS/nixpkgs/issues/188167
2022-08-26 21:17:31 +02:00
Artturin
ec35f6341b lua-packages: try splicing 2022-08-26 20:04:02 +03:00
Matthieu Coudron
e3c0484acd neovim: correctly concat single line configs
The changes introduced in https://github.com/NixOS/nixpkgs/pull/184364#discussion_r945772144
didn't concat correctly the plugin configs when they were a single
string see: https://github.com/nix-community/home-manager/pull/3147

This adds a test for it.
2022-08-20 21:12:18 +02:00
Christian Kögler
27e6c7477b neovide: 0.10.0 -> 0.10.1 2022-08-15 14:38:19 +02:00
Christian Kögler
19f152c2b0 neovide: 0.9.0 -> 0.10.0 2022-08-15 00:55:38 +02:00
Matthieu Coudron
cc0ff183c6 neovimUtils: remove the compatibility layer introduced in 2018
removed compatFun, we need to make the code clearer
2022-08-09 16:21:59 +02:00
Matthieu Coudron
b4d8662c4a neovimUtils.makeNeovimConfig: remove mention of python2
latest neovim stopped supporting python2. We have an ellipsis as input so this should not cause any further error
2022-08-09 16:21:59 +02:00
Matthieu Coudron
cda1f8ae46 neovim: pass packpath via the wrapper
Adding "packages" to the neovim distribution triggers the wrapping of
the derivation. This is because it tries to "set packpath/rtp" in the
init.vim.

If we set these arguments via --cmd instead we can avoid to create an
init.vim, which can be useful if we want to wrap an init.lua later on
(in home-manager for instance, we dont want to generate viml code).

Also removes the support for "configure" in makeNeovimConfig and
configure.plug / configure.vam packages in the compatibility layer
'legacyWrapper'.
2022-08-09 16:20:55 +02:00
Matthieu Coudron
0fb2e47b7f vimUtils: improve comments 2022-08-09 12:01:33 +02:00
Matthieu Coudron
5d38ae801a neovimUtils: merge host settings so that they use a single --cmd flag
vim is limited to 10 --cmd flags so using fewer is better
2022-08-09 12:01:32 +02:00
Matthieu Coudron
6717d144ec vimRcContent: now throws when using pathogen 2022-08-09 12:00:20 +02:00
06kellyjac
d33f4a26a1 Revert "neovim: pass the --clean flag to only use wrapped rc"
This reverts commit ce49cb7792.
2022-08-05 11:51:15 +01:00
06kellyjac
ce49cb7792 neovim: pass the --clean flag to only use wrapped rc 2022-07-26 11:07:44 +02:00
Tae Selene Sandoval Murgan
f88533ec37 neovim-remote: disable tests on Darwin
The only enabled test started to fail with write errors. Setting
HOME=$TMPDIR works, but then it fails the same way than the disabled
ones
2022-07-13 10:11:27 +02:00
Michael Adler
2a1a6e5357 neovim-qt: 0.2.16.1 -> 0.2.17 2022-07-04 13:33:43 +02:00
Kirill Radzikhovskyy
2de1b09bf0 neovide: fixup hash 2022-07-02 14:40:52 +02:00
Christian Kögler
dd3a47ef86 neovide: 0.8 -> 0.9 2022-07-01 18:32:25 +02:00
José Luis Lafuente
1316546506 neovim: 0.7.0 -> 0.7.2 2022-06-30 14:55:47 +02:00
Matthieu Coudron
ce505a3984
vimPlugins: use lua derivation if it exists (#178180)
Neovim plugins are now more often than not written in lua.
One advantage of the lua ecosystem over vim's is the existence of
luarocks and the rockspec format, which allows to specify a package
dependencies formally.
I would like more neovim plugins to have a formal description,
"rockspec" being the current candidate.
This MR allows to use nix lua packages as neovim plugins, so as to enjoy
every benefit that rockspecs bring:
- dependdency discovery
- ability to run test suite
- luarocks versioning
- rockspec metadata

the vim update.py script will check if an attribute with the vim plugin
pname exists in lua51Packages. If it does, it uses
buildNeovimPluginFrom2Nix on it, which modifies the luarocks config to
do an almost flat install (luarocks will install the package in the lua
folder instead of share/5.1/lua etc).
It also calls toVimPlugin on it to get all the vim plugin niceties.

The list of packages that could benefit from this is available at
https://luarocks.org/labels/neovim
but I hope it grows.
2022-06-19 14:18:16 +02:00
Maximilian Bosch
cdbc6e64e4
treewide: reduce maintenance workload for ma27
Note: I DO NOT resign from nixpkgs, not at all!

However, I like a clean notification inbox and I get a lot of stuff for
packages where I'm only an end-user or don't use them anymore and thus
can't help out that much.

So please consider it a measure to reduce the mental load for me when
going through my notifications ;-)
2022-06-19 12:07:43 +02:00
Matthieu Coudron
a1ad235743
vimUtils: deprecate configure.pathogen (#154814)
pathogen does not bring any value compared to vim native packages so
remove it to ease maintainance burden.
2022-06-13 15:25:46 +02:00
github-actions[bot]
107b6041bc
Merge master into staging-next 2022-05-22 18:01:20 +00:00
Tae Selene Sandoval Murgan
394687bf39 neovim-remote: 2.4.0 -> 2.5.1 2022-05-22 15:37:47 +02:00
github-actions[bot]
86ec85655d
Merge master into staging-next 2022-05-22 12:01:28 +00:00
Tae Selene Sandoval Murgan
f7e2353e0b neovim: Pass CoreServices when building on darwin 2022-05-22 09:16:22 +02:00
Naïm Favier
2ae69114a1
makeWrapper: implement --inherit-argv0
For symmetry/interoperability with makeBinaryWrapper. Implemented as
--argv0 '$0'
2022-05-10 22:07:57 +02:00
Theodore Ni
77c966e06e neovim-ruby: 0.8.1 -> 0.9.0 update some Neovim Ruby gem versions 2022-04-22 17:48:20 +02:00
Christian Kögler
2833064bcc
neovide: 2022-02-04 -> 0.8.0 (#168770)
* neovide: 2022-02-04 -> 0.8.0

* neovide: Remove unsupported platform darwin
2022-04-16 22:59:35 +02:00
Thiago Franco de Moraes
0e9bebed0c neovim: 0.6.0 -> 0.7.0 2022-04-16 10:39:52 +02:00
Matthieu Coudron
e98e3a2365
Merge pull request #166162 from teto/lua-checks-pr 2022-03-31 16:12:07 +02:00
Doron Behar
eb5409461a neovim: Explain more why tests are disabled 2022-03-30 12:08:06 +03:00
Doron Behar
f80b906b3a neovim: cleanup a bit libluv related hacks
Remove unneeded cmakeFlags and explain more what is the difference
between lua.pkgs.libluv and lua.pkgs.luv.
2022-03-29 22:16:24 +03:00
Sandro
761bee65a3
Merge pull request #166207 from SuperSandro2000/neovim-remote 2022-03-29 12:31:38 +02:00
Sandro Jäckel
1fff543a34
neovim: remove with lib over entire file 2022-03-29 10:45:23 +02:00
Matthieu Coudron
d3dcc106c8 neovim: revert the linker changes that cause issues on nix
some linker flags have been added to support declarative treesitter grammars but the justification is fuzzy and it breaks several stuff on nix see https://github.com/NixOS/nixpkgs/pull/147658
2022-03-29 04:31:47 +02:00
Malo Bourgon
fc3331b522
neovim-remote: add meta.mainProgram (#166173) 2022-03-29 04:15:31 +02:00
Christian Kögler
87631775cb neovide: 2021-10-09 -> 2022-02-04 2022-02-05 14:26:44 +01:00
Jonathan Ringer
91e5be0fc0 neovim: fix treesitter for darwin 2022-01-25 16:22:05 -08:00
Cody Hiar
abe84c21a9 neovim: add ldflag for treesitter plugins requiring libstdc++ 2022-01-24 15:33:23 -08:00
Ashish SHUKLA
9d6d1a474b neovim: 0.6.0 -> 0.6.1 2021-12-31 14:21:40 -08:00
Maximilian Bosch
a70b3d1847
neovim: prepend extraMakeWrapperArgs in wrapper with a space (#148409) 2021-12-03 16:37:52 +01:00
Michael Adler
137a153655
neovim: provide default value for python3Env (#147241) 2021-12-01 10:15:46 +01:00
Christian Kögler
fc48d182bc neovim: 0.5.1 -> 0.6.0 2021-12-01 10:11:17 +01:00
Christian Kögler
8b62b01325 neovim: Remove X11 dependency
Remove runtime dependency to X11 for smaller closure sizes
and reduced complexity.
2021-10-28 18:57:13 +02:00
Artturin
abe0a8608b neovide: support darwin 2021-10-21 20:51:36 +03:00
Artturin
24b7f415e6 neovide: only enable wayland on linux 2021-10-21 20:49:23 +03:00
Christian Kögler
454d9f7410 neovide: unstable-2021-08-08 -> unstable-2021-10-09 2021-10-10 13:56:07 +02:00
Arthur Gautier
9cb5337fde
vim-utils: fix dependency graph (#140118)
* neovim.tests: ensure the graph is pulled

We'll change the plugin name to ensure the plugin is correctly pulled by
vim-plug config generation.
* neovim.tests: ensure nvim exit with error
* Revert "fix: remove trailing '/.' from vim-plug plugin paths"

The root cause if fixed by
761b2c6ff3 (diff-e4b94db9201d58bd9410739dddf92bef74e0b5f5e596c804a84ee7c580ae3f71R9)

This reverts commit d9d1a11aed.
2021-10-08 00:26:43 +02:00
Gabriel Ebner
7005f1e6e2 neovim: 0.5.0 -> 0.5.1 2021-09-27 11:13:49 +02:00