Created
September 23, 2021 01:24
-
-
Save countoren/8b3e151d9a418c30f2e5a544c17895c8 to your computer and use it in GitHub Desktop.
this is vimrc generated from the the nix expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" configuration generated by NIX | |
set nocompatible | |
filetype indent plugin on | syn on | |
let g:nix_plugin_locations = {} | |
let g:nix_plugin_locations['ale'] = "/nix/store/myrl8snydw1rbymc61jqvb1s79l9826m-vimplugin-ale-2021-07-17/share/vim-plugins/ale" | |
let g:nix_plugin_locations['quick-lint-js'] = "/nix/store/aca6p89mpbkz9bqsfkbxwwxr185c9cnv-vimplugin-quick-lint-js/share/vim-plugins/quick-lint-js" | |
""While /nix/store/aca6p89mpbkz9bqsfkbxwwxr185c9cnv-vimplugin-quick-lint-js/share/vim-plugins/quick-lint-js contains: | |
""/nix/store/aca6p89mpbkz9bqsfkbxwwxr185c9cnv-vimplugin-quick-lint-js/share/vim-plugins/quick-lint-js/ | |
""ale_linters/javascript/ | |
"" quick_lint_js.vim [RO] | |
""autoload/ | |
"" quick_lint_js_ale.vim [RO] | |
let g:nix_plugin_locations['vim-addon-manager'] = "/nix/store/a1fpy7m1whb22rn148b7kiaw6q0nldyd-vimplugin-vim-addon-manager-2018-07-27/share/vim-plugins/vim-addon-manager" | |
let g:vim_addon_manager = {} | |
if exists('g:nix_plugin_locations') | |
" nix managed config | |
" override default function making VAM aware of plugin locations: | |
fun! NixPluginLocation(name) | |
let path = get(g:nix_plugin_locations, a:name, "") | |
return path == "" ? vam#DefaultPluginDirFromName(a:name) : path | |
endfun | |
let g:vim_addon_manager.plugin_dir_by_name = 'NixPluginLocation' | |
" tell Vim about VAM: | |
let &rtp.=(empty(&rtp)?"":','). g:nix_plugin_locations['vim-addon-manager'] | |
else | |
" standalone config | |
let &rtp.=(empty(&rtp)?"":',').c.plugin_root_dir.'/vim-addon-manager' | |
if !isdirectory(c.plugin_root_dir.'/vim-addon-manager/autoload') | |
" checkout VAM | |
execute '!git clone --depth=1 https://github.com/MarcWeber/vim-addon-manager ' | |
\ shellescape(c.plugin_root_dir.'/vim-addon-manager', 1) | |
endif | |
endif | |
" tell vam which plugins to load, and when: | |
let l = [] | |
call add(l, {'names': ['ale', 'quick-lint-js']}) | |
call vam#Scripts(l, {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment