A (Neo)Vim plugin for dasht integration:
Search docsets for something you type:
" search related docsetsnnoremap<Leader>k :Dasht<Space>" search ALL the docsetsnnoremap<Leader><Leader>k :Dasht!<Space>
Search docsets for words under cursor:
" search related docsetsnnoremap<silent><Leader>K:call Dasht(dasht#cursor_search_terms())<Return>" search ALL the docsetsnnoremap<silent><Leader><Leader>K:call Dasht(dasht#cursor_search_terms(), '!')<Return>
Search docsets for your selected text:
" search related docsetsvnoremap<silent><Leader>Ky:<C-U>call Dasht(getreg(0))<Return>" search ALL the docsetsvnoremap<silent><Leader><Leader>Ky:<C-U>call Dasht(getreg(0), '!')<Return>
Specify related docsets for searching:
letg:dasht_filetype_docsets= {}" filetype => list of docset name regexp" For example: {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{" When in Elixir, also search Erlang:letg:dasht_filetype_docsets['elixir'] = ['elixir', 'erlang'] " When in C++, also search C, Boost, and OpenGL:letg:dasht_filetype_docsets['cpp'] = ['cpp', '^c$', 'boost', 'OpenGL'] " When in Python, also search NumPy, SciPy, and Pandas:letg:dasht_filetype_docsets['python'] = ['python', '(num|sci)py', 'pandas'] " When in HTML, also search CSS, JavaScript, Bootstrap, and jQuery:letg:dasht_filetype_docsets['html'] = ['html', 'css', 'js', 'bootstrap'] " When in Java, search Java SE11, but not JavaScript:letg:dasht_filetype_docsets['java'] = ['java_se11'] " and so on... }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Configure where results are displayed:
" create window below current one (default)letg:dasht_results_window='new'" create window beside current oneletg:dasht_results_window='vnew'" use current window to show resultsletg:dasht_results_window='enew'" create panel at left-most edgeletg:dasht_results_window='topleft vnew'" create panel at right-most edgeletg:dasht_results_window='botright vnew'" create new tab beside current oneletg:dasht_results_window='tabnew'
Developers can run the vim-vspec tests:
gem install bundler # first time
bundle install # first time
bundle exec vim-flavor test# every timeLike my work? 👍 Please spare a life today as thanks! 🐄🐖🐑🐔🐣🐟✨🙊✌
Why? For 💕 ethics, the 🌎 environment, and 💪 health; see link above. 🙇
Copyright 2016 Suraj N. Kurapati https://github.com/sunaku
Distributed under the same terms as Vim itself.