Commit Graph

313 Commits

Author SHA1 Message Date
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
Matthieu Coudron
cae999f7a3 neovim.tests: add a test for tags generation
packer.nvim has a doc/ folder so the vim doc hook should generate a 'tags' file
2021-09-17 16:00:00 +02:00
Matthieu Coudron
761b2c6ff3 neovim.tests: complete plug test
to check that it can correctly load the colorscheme
2021-09-17 00:33:03 +02:00
Matthieu Coudron
ed77db85ff
Merge pull request #136429 from teto/vim-remove-rtpPath
Vim remove share/runtime/NAME prefix from the installed folder
2021-09-12 19:58:17 +02:00
Matthieu Coudron
1c4904092b neovim.tests: test vim-plug too 2021-09-12 19:03:09 +02:00
Matthieu Coudron
88842910b5 lua: introduced a lua lib
Goal is to improve separation between packages and utilities.
Can help with autocompletion/navigate nixpkgs faster.
Also it will help standardize how LUA_PATH is exported across packages,
so that one can more easily make lua changes across nixpkgs (for
    instance changing where lua modules are installed).
2021-09-12 03:03:56 +02:00
Sandro Jäckel
7bf2ada396
neovim-ruby: 0.8.0 -> 0.8.1 2021-09-05 04:11:34 +02:00
Gregory Anders
d37ed0e5ad neovim: remove redundant -n in test
The -es flag already implies -n (no swapfile).
2021-09-01 12:21:43 -06:00
Gregory Anders
8477406018 neovim: allow extra Lua packages 2021-08-31 19:46:44 -06:00
ners
761c93e410
neovim-qt: add qtsvg depedency (#135683)
Co-authored-by: Christoph Neidahl <christoph.neidahl@gmail.com>
2021-08-26 00:59:47 +02:00
Matthieu Coudron
3ab8ce12c2 neovide: fix meta.mainProgram
it was trying to start neovide-unstable
2021-08-15 19:40:09 +02:00
Christian Kögler
be03a55b36 neovide: 2021-06-21 -> 2021-08-08 2021-08-11 01:17:00 +02:00
Christian Kögler
a517d00046 neovide: Remove expat
Expat is provided via skia.
2021-08-11 01:10:31 +02:00
Christian Kögler
6418b5d2d5 neovide: Fix #133409 by backporting freetype 2021-08-11 01:06:34 +02:00
Matthieu Coudron
51e3fe5346 neovim: set meta in the unwrapped version
instead of the wrapper: the wrapper will inherit the value from the unwrapped version. This allows nix run nixpkgs#neovim-unwrapped to work too.
2021-07-10 20:49:40 +02:00
Roman Volosatovs
58ba227160
neovim: 0.4.4 -> 0.5.0
`"-DUSE_BUNDLED=OFF"` is from 2bcf18deaa/contrib/flake.nix (L25)
2021-07-02 18:10:01 +02:00
Benjamin Tan
3f50543e34 neovide: enable wayland usage without xwayland 2021-06-27 23:22:18 -07:00
Christian Kögler
64d2892c92
neovide: 0b976c3 -> 4159c47f
* neovide: 0b976c3 -> 4159c47f

Neovide moved from Vulkan to OpenGL which has better GPU support.
2021-06-26 13:57:00 +02:00
Matthieu Coudron
83f6711464 neovim.tests: added more tests
to check for creation of vi/vim aliases.
These tests also now follow the coding conventions of having tests in
passthru.test .
2021-06-09 21:45:25 +02:00
Matthieu Coudron
4a2cbcfbb4 neovim: add some tests
To test the generated RC is included in the file and that we have the
option not to wrap the RC.

run:
nix-build -A tests.vim
2021-06-07 18:21:21 +02:00
Nicolas Berbiche
fbe60d186b
neovim: always generate rplugin.vim (#124990) 2021-05-31 00:05:51 +02:00
Matthieu Coudron
c73371e04b
neovim: fix neovim.override (#124785)
* neovim: temporary revert to unbreak user configs

Newly introduced "plugins" parameter is disabled until we get a better
testing infrastructure to minimize breaking changes.
2021-05-29 16:36:39 +02:00
Matthieu Coudron
4a860879ea wrapNeovimUnstable: accept a wrapRc boolean
additional argument not generated by makeNeovimConfig
If true (the default), appends "-u <customRc>" to the wrapped arguments.
Set to false if you want to control where to save the generated config
(e.g., in ~/.config/init.vim or project/.nvimrc)
2021-05-25 22:41:08 +02:00
Matthieu Coudron
7836469dbe neovimUtils: makeNeovimConfig accepts plugins/customRc
mimics home-manager interface and makes it easier to associate configs with plugins. Added a test as well.
2021-05-25 22:41:08 +02:00
Matthieu Coudron
a793aacf9d neovim: accepts an extraName to distinguish between wrappers
especially useful to distinguish between the different neovim generated during the tests
2021-05-25 22:41:07 +02:00
Christian Kögler
555afaa94e neovide: Fix build caused by llvm multi output 2021-05-23 14:34:13 +02:00
github-actions[bot]
9911b1c75b
Merge staging-next into staging 2021-05-16 01:01:01 +00:00
Christian Kögler
0935f7d7dd neovide: Separate skia externals 2021-05-15 13:27:34 +02:00
Christian Kögler
5067ba8444 neovide: Install icons and desktop files 2021-05-15 10:11:54 +02:00
Christian Kögler
a0bc1ab480 neovide: ba42855 -> 0b976c3
Simplify packaging, since upstream applied proposed pull request.
2021-05-15 08:19:54 +02:00
Christian Kögler
428edf7fe0 neovide: init at ba42855 2021-05-14 18:53:15 +02:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
Konstantin Alekseev
e349b77943 neovim: set g:loaded_python_provider = 0 2021-05-05 18:04:09 +02:00
Martin Weinelt
d942d4473d neovim, neovimUtils, neovim-qt: drop python2 support
In 2a00e53bd pynvim support for python2 was disabled, this broke the
neovim build. I really think it is time to let go of python2 support in
neovim.
2021-05-02 22:43:53 +02:00
Ana Hobden
c9ab377ebc neovim: set meta.mainProgram
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-04-26 07:13:22 -07:00
Matthieu Coudron
b3abdc9534
tests.vim: init (moved from vim-utils.nix) (#119467)
* tests.vim: init (moved from vim-utils.nix)

Moved tests from pkgs/misc/vim-plugins/vim-utils.nix to pkgs/test/vim.
Also reduced the amount of generated config:
- Make it possible to have an empty config when configured adequately
- removed default vim config when using native packages, it could be
  source of bugs see linked issues (syntax on overrides vim highlights)

Things to watch out for:
- if you set configure.beforePlugins yourself, you will need to add set nocompatible too not to lose it
- filetype indent plugin on | syn on is not enabled anymore by default for the vim-plug installer: I dont think we should override vim defualts, at least not here since it is shared with neovim. Also sometimes it's enabled before plugins (pathogen etc,) which is not consistent.


you can run the tests via
$ nix-build -A tests.vim
2021-04-21 12:55:05 +02:00
Ben Siraphob
7d97e284e8 treewide: remove redundant stdenv 2021-03-26 12:18:16 +07:00
Matthieu Coudron
3a25004f2b neovim-qt-unwrapped: init at 2.16.1
more like a refactoring. It was already available but via neovim-qt.passthru.unwrapped

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-03-22 10:31:26 +01:00
Minijackson
de6283bebf gnvim: fix install phase with Rust with custom target 2021-03-06 22:02:30 +01:00
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Klemens Nanni
e0f258f596
neovim: Do $PATH lookup in neovim.desktop instead of hardcoding derivation
See db236e588d "steam: Do $PATH lookup in steam.desktop [...]".
tl;dr: Otherwise widget/panel/desktop icons in DEs like KDE break.

Simply stop adding the full derivation path for neovim and stick with
how upstream uses no path at all.

While here, take care of gnvim.desktop as well by adjusting the sed(1)
expression (and simplifying it in one go);  I do not use gnvim.desktop
but built it and confirmed the resulting files to contain no full paths
any longer.
2020-11-05 11:41:53 +01:00
Matthieu Coudron
86d7ed8d10 neovim: take into account vi(m)Alias
restore feature broken by compatibility layer
2020-11-03 09:31:56 +01:00
Matthieu Coudron
42cc40ddc8 neovim: fix nodejs and ruby generation
These were not translated correctly in the new wrapper.
2020-11-02 23:27:49 +01:00
Matthieu Coudron
295948f40f neovim: dont wrap when is null
restore previous behavior
2020-11-01 18:55:57 +01:00
Matthieu Coudron
95702fe6d2 neovim: revert change to extraMakeWrapperArgs
wrapNeovim incited users to use a list instead of a string. Revert that:
the change is not super useful while breaking home-manager.
2020-10-31 14:32:02 +01:00
Matthieu Coudron
2eb1610725
neovimUtils: neovim utilities to handle more usecases
Current nixpkgs always wraps neovim with the "-u" which has sideeffects as explained in https://github.com/NixOS/nixpkgs/issues/55376 : 
1.  vim won't set the variable $MYVIMRC as explained #34215
 2. vim skips loading folder-specific .vimrc / .nvimrc

I wanted to provide a way for users to better control what flags are used to wrap neovim. This is achived by introducing wrapNeovimUnstable et neovimUtils, utilities to help with that. We provide a compatibility layer so that wrapNeovim still works and to let us experiment with wrapNeovimUnstable to better control neovim configuration, plugin dependencies, haskell environment etc so that it becomes easier to generate per-project neovim config.

With this commit, it's possible for instance for home-manager to wrap neovim without the `-u` and just write the config in the
expected $XDG_CONFIG_HOME/nvim/init.vim .
Expect wrapNeovimUnstable interface to evolve in the upcoming months.
2020-10-29 09:50:26 +01:00
Matthieu Coudron
4c4c4874c4
neovim: add config to passthru (#101100)
first will register the config under the name init.vim which is more
appropriate for neovim.
Pass the generated config to passthru so that one can easily pass the
current config to a
raw/unwrapped neovim (helps with development).

For instance, home-manager can reference the config in $XDG_CONFIG_HOME/nvim/init.vim
without the need to wrap nvim with its config.
2020-10-20 12:26:39 +02:00
Viacheslav Lotsmanov
897d92c854 neovim-qt: 0.2.15 -> 0.2.16.1 2020-10-03 19:12:57 +02:00
Kevin Cox
599089ed1d
neovim-qt: Add homepage 2020-08-31 07:19:40 -04:00
Sirio Balmelli
0f1434cb2a
neovim: fix build on Darwin
libluv path passed to -DLIBLUV_LIBRARY broken by change in libluv, eg:
libluv.dylib -> libluv.1.30.0.dylib

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2020-08-14 23:29:31 +02:00
Konstantin Alekseev
f9a5d8539d neovim: fix node neovim binary link 2020-08-12 13:59:02 -07:00
Maximilian Bosch
71ca3bf31d
Merge pull request #94705 from yoctocell/neovim-0.4.4
neovim: 0.4.3 -> 0.4.4
2020-08-05 22:20:03 +02:00
yoctocell
7f137849e8 neovim: 0.4.3 -> 0.4.4 2020-08-05 10:22:53 +02:00
Doron Behar
c63b5c4c36 wrapNeovim: fix darwin build 2020-08-04 09:14:09 +03:00
Doron Behar
85f6da6eed wrapNeovim: Rewrite
Cleanups:
- Removed unneeded neovim.meta.description reset.
- Remove unnecessary -x checks in `postBuild`.
- Use a ${placeholder "out"} if needed.

Changes:
- Switch to symlinkJoin, so e.g manpages link to the environment (#87929).
- Use nvim-node from $out/bin/ just like all other providers.
- Compute all arguments to makeWrapper in pure Nix "before" `postBuild`.
- Prevent double wrapping in case `configure != {}` and rplugin.vim
  needs to be generated.

Co-authored-by: Silvan Mosberger <contact@infinisil.com>
2020-07-31 20:39:12 +03:00
Minijackson
1e02256cac
gnvim: 0.1.5 -> 0.1.6 2020-07-08 23:03:42 +02:00
Frederik Rietdijk
d0532e79ae Merge staging-next into staging 2020-06-07 09:25:46 +02:00
Matthieu Coudron
b4c7a0b762 neovim-unwrapped: improve testing ability
Make functionaltests more complete.
2020-06-06 20:21:17 +02:00
Maximilian Bosch
068beb2c07
gnvim: fix build
When running the default builder for Rust, the artifacts would be stored
in `target/<arch>/<profile>`, however the `install`-target expects the
default structure (`target/<profile>`) of `cargo`-builds.

When using the Makefile for building as well, the expected structure is
created instead.
2020-05-13 22:19:47 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Michael Fellinger
f92600b406
update versions in Gemfile.lock 2020-04-06 15:02:13 +02:00
Ersin Akinci
588ca6e310
neovim: use TMPDIR as home during initilizaiton 2020-03-15 12:55:06 +00:00