summary refs log tree commit diff
path: root/doc/languages-frameworks/vim.section.md
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-12-24 13:13:59 +0100
committerTimo Kaufmann <timokau@zoho.com>2018-12-24 23:41:44 +0100
commit8e8a09bfc9546edca6623f713bd1be2cb544da21 (patch)
tree4de27ec5f6e2a499ed6510835e59a4c5d22c5002 /doc/languages-frameworks/vim.section.md
parentb352318cd11d67d49ddb6d1c0cb2cea786e08b46 (diff)
downloadnixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.tar
nixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.tar.gz
nixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.tar.bz2
nixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.tar.lz
nixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.tar.xz
nixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.tar.zst
nixpkgs-8e8a09bfc9546edca6623f713bd1be2cb544da21.zip
vimUtils: add dependency logic to nativeImpl
nativeImpl previously simply ignored dependency information.
Diffstat (limited to 'doc/languages-frameworks/vim.section.md')
-rw-r--r--doc/languages-frameworks/vim.section.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md
index 2cec1543a24..6ed60028ae2 100644
--- a/doc/languages-frameworks/vim.section.md
+++ b/doc/languages-frameworks/vim.section.md
@@ -48,7 +48,7 @@ neovim.override {
 
 ## Managing plugins with Vim packages
 
-To store you plugins in Vim packages the following example can be used:
+To store you plugins in Vim packages (the native vim plugin manager, see `:help packages`) the following example can be used:
 
 ```
 vim_configurable.customize {
@@ -56,6 +56,8 @@ vim_configurable.customize {
     # loaded on launch
     start = [ youcompleteme fugitive ];
     # manually loadable by calling `:packadd $plugin-name`
+    # however, if a vim plugin has a dependency that is not explicitly listed in
+	# opt that dependency will always be added to start to avoid confusion.
     opt = [ phpCompletion elm-vim ];
     # To automatically load a plugin when opening a filetype, add vimrc lines like:
     # autocmd FileType php :packadd phpCompletion
@@ -63,6 +65,7 @@ vim_configurable.customize {
 }
 ```
 
+`myVimPackage` is an arbitrary name for the generated package. You can choose any name you like.
 For Neovim the syntax is:
 
 ```
@@ -74,6 +77,8 @@ neovim.override {
     packages.myVimPackage = with pkgs.vimPlugins; {
       # see examples below how to use custom packages
       start = [ ];
+      # If a vim plugin has a dependency that is not explicitly listed in
+      # opt that dependency will always be added to start to avoid confusion.
       opt = [ ];
     };
   };