Commit Graph

311 Commits

Author SHA1 Message Date
Matthieu Coudron
1e00cab35a
Merge pull request #220474 from Leixb/fixDocsNvim
lua-rocks-move-data: fix missing doc tags on luaPackages neovim plugins
2023-03-16 01:09:57 +01:00
LeixB
b9220710d1
neovim: add test for help tags on plugins from luaPackages 2023-03-14 12:45:33 +01:00
aleksana
f7986da98e neovim-gtk: init at 1.0.4 2023-03-14 00:18:13 +08:00
Matthieu Coudron
71210f0410 neovimUtils.makeNeovimConfig: expose packpathsDir
this way home-manager can link the packpathDir in
~/.local/share/nvim/site which makes package discovery work without
needing to `set packpath` (making the wrapper further useless).
2023-02-28 11:59:22 +01:00
figsoda
42d1d60a92
Merge pull request #206773 from SuperSandro2000/cleanup-unused-bindings
treewide: cleanup some unused bindings
2023-02-06 20:07:50 -05:00
Sandro Jäckel
50e0012f9d
treewide: cleanup some unused bindings 2023-02-07 01:36:15 +01:00
figsoda
3e656f7c1d
Merge pull request #212235 from raboof/neovim-0.8.2-to-0.8.3
neovim: 0.8.2 -> 0.8.3
2023-02-05 21:15:04 -05:00
Arnout Engelen
11b9314f14
neovim: 0.8.2 -> 0.8.3 2023-02-02 19:22:51 +01:00
Shawn8901
3866fa44a7 treewide: remove global with lib; in pkgs/{audio,blockchain,editors} 2023-01-21 23:11:12 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Arnout Engelen
af0b453724
Merge pull request #208103 from raboof/neovim-reproducible
neovim: make the build reproducible
2023-01-05 13:17:38 +01:00
Arnout Engelen
90c4a2ebc3
neovim: make the build reproducible
This introduces a patch that improves binary reproducibility since changes in
ordering of the generated code indeed cause changes in the compiled code.

Additionally, since neovim embeds luajit-compiled bytecode into the nvim binary,
we are impacted by https://github.com/LuaJIT/LuaJIT/issues/626 . It is possible
to switch to lua 5.1, but that'd be a regression (luajit has much better
performance and some plugins depend on it, like for example Noice and Lazy).
Disabling `COMPILE_LUA` at build time would cause a runtime penalty each time
neovim starts. Instead, we run luagit with those security settings disabled for
the build-time code generation.

(Note to self: for a minimized testcase this seemed to help at
975ec13f5d5aefcac1dbb15fa867e660e07c93a1 but no longer at
03080b795aa3496ed62d4a0697c9f4767e7ca7e5 of luajit, which is surprising since
that commit doesn't look super relevant. _Also_ surprisingly it does seem to
work in the context of the neovim code generation, though, so that might be
good enough...)

Also, some of the code generation (using mpack and tables) still relies on
stable table ordering. This should eventually be fixed, but as a workaround
we use the luajit-with-stable-string-ids for those generators as well.

Fixes #207841
2023-01-01 15:50:12 +01:00
Gaetan Lepage
5d6f451722 neovim: 0.8.1 -> 0.8.2 2022-12-30 16:37:35 +01:00
Naïm Favier
4e5ebcc3ed
vim-full: rename from vim_configurable
Avoids confusion: `vim-full`'s build-time features are configurable, but both
`vim` and `vim-full` are *customizable* (in the sense of user configuration).
2022-12-09 09:55:55 +01:00
Sandro Jäckel
5108c96e98 neovim: remove global with lib 2022-12-08 00:08:04 +01:00
figsoda
eeb1fad1bc neovide: drop python2, clean up 2022-12-05 14:29:57 -05:00
Daniel Thwaites
d797db230d neovim: rename wrapper 2022-11-30 18:54:29 +01:00
Alexis Hildebrandt
6092075d23 neovim: 0.8.0 -> 0.8.1 2022-11-15 18:52:15 +01:00
Christian Kögler
f9c04d8557 neovide: 0.10.1 -> 0.10.3 2022-11-07 13:49:52 +01:00
github-actions[bot]
886633ba43
Merge master into staging-next 2022-10-15 00:04:00 +00:00
Matthieu Coudron
2acce7dfdc vimPlugins: make usage of luaPackages less confusing
right now the src is ignored in:

```
  lush-nvim = buildNeovimPlugin {
    pname = "lush.nvim";
    version = "2022-08-09";
    src = fetchFromGitHub {
      owner = "rktjmp";
      repo = "lush.nvim";
      rev = "6b9f399245de7bea8dac2c3bf91096ffdedfcbb7";
      sha256 = "0rb77rwmbm438bmbjfk5hwrrcn5sihsa1413bdpc27rw3rrn8v8z";
    };
    meta.homepage = "https://github.com/rktjmp/lush.nvim/";
  };
```

which is very confusing. With this PR, we correctly override the src and
the version of the package. We introduce a rockspecVersion attribute of
lua package to be able to still find the rockspec when the
"version" field needs to be different than "rockspecVersion".
2022-10-13 19:57:35 +02:00
Markus S. Wamser
c9d167f174 pkgs.applications: remove unused args 2022-10-12 16:00:16 +02:00
Christian Kögler
472f197978 neovide: remove dependency to skia sources 2022-10-08 21:39:01 +02:00
oxalica
f9af66562a neovim-remote: fix build with neovim 0.8 2022-10-04 10:59:08 +02:00
Jens Nolte
d9f5a82c8c neovim: 0.7.2 -> 0.8.0 2022-10-02 02:39:51 +02:00
Matthieu Coudron
aedd12c96a vimUtils.packdir: better merge of plugins
Fixes https://github.com/NixOS/nixpkgs/issues/193070

Basically it was hard to install both
nvim-treesitter.withPlugins (
          plugins: with plugins; [
            tree-sitter-c
            tree-sitter-lua
            tree-sitter-org-nvim
          ]
        ));
and nvim-treesitter

It also simplifies some nix code.
2022-09-29 16:38:14 +02:00
github-actions[bot]
6ded381b0e
Merge master into staging-next 2022-09-22 00:03:22 +00:00
Florian Warzecha
86c51f68bc
nixos/neovim: fix remote plugin manifest generation (#191852)
Stops using ex mode when running neovim for remote plugin manifest generation, since that leads to errors in more recent neovim versions with various plugins.
neovim commit that breaks this plugin generation: https://github.com/neovim/neovim/commit/64d147b
2022-09-21 23:56:19 +02:00
Vladimír Čunát
a5dfac88d5
Merge branch 'master' into staging-next
The java conflicts weren't trivial.  Hopefully OK.
2022-09-19 07:40:23 +02:00
Colin Heffernan
d309a0b9e9
neovimUtils: put optional plugins in incorrect folder
all plugins ended up in "start". Also adds a test
2022-09-18 23:19:11 +02:00
github-actions[bot]
4650511a9c
Merge master into staging-next 2022-09-17 00:02:34 +00:00
Alexander Polakov
0e74fea612 neovide: fix build on darwin 2022-09-17 01:12:00 +04:00
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