Commit Graph

332 Commits

Author SHA1 Message Date
figsoda
a040c852e6 neovim: install the required perl modules 2023-07-05 19:38:58 -04:00
Matthieu Coudron
2473b44627 neovim: add perl to supported providers
false by default.
I noticed checkhealth complaining about it

Which made me realize the providers ignored user config and were always
using default config, hence the backport.
2023-07-06 01:32:01 +02:00
Nick Cao
03615b4837
neovim: use msgpack-c instead of msgpack 2023-06-22 18:31:00 +08:00
Matthieu Coudron
3b0f5393d9 neovimUtils.grammarToPlugin: install tree-sitter grammars for neovim without nvim-treesitter
nvim-treesitter installs tons of queries that are picked up
by neovim even though we sometimes dont want those queries.
This makes it possible to install grammars without nvim-treesitter which
becomes more and more a repository like nvim-lspconfig, aka a repo that
lists others.
2023-06-12 18:36:14 +02:00
Matthieu Coudron
8255903b71 neovimUtils.buildNeovimPluginFrom2Nix: rename to buildNeovimPlugin
buildNeovimPluginFrom2Nix was cargo-culted from buildVimPluginFrom2Nix
but this doesn't make sense.
From2Nix referred to a way of building plugins that is not used anymore
so buildVimPluginFrom2Nix could be renamed too.
2023-06-12 16:46:52 +02:00
Gaetan Lepage
f1423fd5ae neovim: 0.9.0 -> 0.9.1 2023-05-30 00:17:30 +02:00
figsoda
49b3739585
Merge pull request #226323 from figsoda/neovim 2023-05-09 21:36:38 -04:00
Rémi NICOLE
6810db9123
gnvim: 0.1.6 -> 0.3.1 (#204082) 2023-05-09 13:16:59 +02:00
figsoda
a002cddf22
Merge pull request #227159 from figsoda/neovim-ts 2023-05-02 18:39:51 -04:00
figsoda
79a85d3ce5 neovim: bundle treesitter parsers 2023-04-19 21:17:19 -04:00
Matthieu Coudron
e2d6e8e19d
Merge pull request #219400 from symphorien/debug_nvim
neovim, libuv: add debug output
2023-04-18 23:37:18 +02:00
figsoda
5b3534dd2e neovim-unwrapped: apply patch to fix the #gsub! directive 2023-04-15 13:58:35 -04:00
Sandro
73d02b5567
Merge pull request #225152 from GaetanLepage/neovim 2023-04-11 22:00:39 +02:00
Christian Kögler
18111d5d7e neovide: 0.10.3 -> 0.10.4 2023-04-09 22:23:51 +02:00
Gaetan Lepage
8eb9ed0cd5 neovim: 0.8.3 -> 0.9.0 2023-04-08 23:36:58 +02:00
Matthieu Coudron
c17904b980 neovim: more flexibility in startup commands
the neovim mechanisms generate provider rc configuration such as:
vim.g.<LANG>_host_prog=$out/bin/nvim-<LANG>

In home-manager, we want more control over it, e.g., to pass it via
command line or in init.lua.

We also want to retrieve the generated packpathDirs so that we can link
it in the expected $XDG_DATA_HOME folder so that we then dont have to
tell neovim where look for it anymore.
2023-04-07 10:21:22 +02:00
Matthieu Coudron
a5bcdc3fbb neovim.tests.run_nvim_with_ftplugin: fix
we shall exit neovim to allow the rest of the code to run
also our ftplugin should not be loaded now that neovim loads his.
2023-04-01 22:26:57 +02:00
Matthieu Coudron
67f6f13c2e neovim.tests.nvim_with_opt_plugin: fixed
once :Dashboard succeeded, the script would close neovim and thus never
terminate. We instead check if the command ":Dashboard" exists.
2023-04-01 21:30:14 +02:00
Yureka
f8cbc3c281 tree-wide: convert rust with git deps to importCargoLock 2023-03-26 01:52:04 +01:00
linsui
7ee8aa8039 neovimUtils: only set packpath/rtp as needed
... when there are plugins
2023-03-19 18:38:33 +01:00
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
Guillaume Girol
804dc94594 neovim-unwrapped: add debug output
would have been valuable for https://github.com/NixOS/nixpkgs/issues/218939
2023-03-03 12:00:00 +00: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