about summary refs log tree commit diff
path: root/pkgs/misc/vim-plugins
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-12-30 20:37:44 +0100
committerTimo Kaufmann <timokau@zoho.com>2019-01-18 21:18:32 +0100
commitab22e8cc9c8f667c09f54f82fcb88f9732c54dfc (patch)
tree5ec36e748d3cf83483d1e7462065ab184eeed12c /pkgs/misc/vim-plugins
parent51c4768f67b4345f09b4e37f930056b7b1e61787 (diff)
downloadnixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.tar
nixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.tar.gz
nixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.tar.bz2
nixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.tar.lz
nixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.tar.xz
nixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.tar.zst
nixlib-ab22e8cc9c8f667c09f54f82fcb88f9732c54dfc.zip
neovim: generate remote plugin manifest
This makes sure the user doesn't have to call `UpdateRemotePlugins`
manually for plugins installed through nix. A minor patch to neovim is
necessary, but it should be harmless. See
https://github.com/neovim/neovim/issues/9413 for a discussion about
the patch.
Diffstat (limited to 'pkgs/misc/vim-plugins')
-rw-r--r--pkgs/misc/vim-plugins/vim-utils.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/misc/vim-plugins/vim-utils.nix b/pkgs/misc/vim-plugins/vim-utils.nix
index cf5eeaec3e33..2a758aa98433 100644
--- a/pkgs/misc/vim-plugins/vim-utils.nix
+++ b/pkgs/misc/vim-plugins/vim-utils.nix
@@ -486,4 +486,12 @@ rec {
       });
     vimrcConfig.vam.pluginDictionaries = [ { names = [ "vim-trailing-whitespace" ]; } ];
   };
+
+  # system remote plugin manifest should be generated, deoplete should be usable
+  # without the user having to do `UpdateRemotePlugins`. To test, launch neovim
+  # and do `:call deoplete#enable()`. It will print an error if the remote
+  # plugin is not registered.
+  test_nvim_with_remote_plugin = neovim.override {
+    configure.pathogen.pluginNames = with vimPlugins; [ deoplete-nvim ];
+  };
 }