vimUtils: improve comments
This commit is contained in:
parent
5d38ae801a
commit
0fb2e47b7f
2 changed files with 8 additions and 20 deletions
|
@ -38,7 +38,7 @@ let
|
|||
, plugins ? []
|
||||
# forwarded to configure.customRC
|
||||
, customRC ? ""
|
||||
# same values as in vimUtils.vimrcContent
|
||||
# same values as in vimUtils.vimrcContent (deprecated)
|
||||
, configure ? { }
|
||||
|
||||
# for forward compability, when adding new environments, haskell etc.
|
||||
|
|
|
@ -165,7 +165,11 @@ let
|
|||
|
||||
rtpPath = ".";
|
||||
|
||||
# Generates a packpath folder as expected by vim
|
||||
/* Generates a packpath folder as expected by vim
|
||||
Example:
|
||||
packDir (myVimPackage.{ start = [ vimPlugins.vim-fugitive ]; opt = [] })
|
||||
=> "/nix/store/xxxxx-pack-dir"
|
||||
*/
|
||||
packDir = packages:
|
||||
let
|
||||
linkVimlPlugin = plugin: packageName: dir: ''
|
||||
|
@ -233,7 +237,7 @@ let
|
|||
vimrcContent = {
|
||||
packages ? null,
|
||||
vam ? null,
|
||||
pathogen ? null,
|
||||
pathogen ? null, # deprecated
|
||||
plug ? null,
|
||||
beforePlugins ? ''
|
||||
" configuration generated by NIX
|
||||
|
@ -255,23 +259,7 @@ let
|
|||
call plug#end()
|
||||
'';
|
||||
|
||||
/*
|
||||
vim-addon-manager = VAM
|
||||
|
||||
* maps names to plugin location
|
||||
|
||||
* manipulates &rtp at startup time
|
||||
or when Vim has been running for a while
|
||||
|
||||
* can activate plugins laziy (eg when loading a specific filetype)
|
||||
|
||||
* knows about vim plugin dependencies (addon-info.json files)
|
||||
|
||||
* still is minimalistic (only loads one file), the "check out" code it also
|
||||
has only gets loaded when a plugin is requested which is not found on disk
|
||||
yet
|
||||
|
||||
*/
|
||||
# vim-addon-manager = VAM (deprecated)
|
||||
vamImpl =
|
||||
let
|
||||
knownPlugins = vam.knownPlugins or vimPlugins;
|
||||
|
|
Loading…
Reference in a new issue