Fix help preview and add highlighting to search result (#124)

* fix: make sure that `$VIMRUNTIME/doc/tags` is in `tags` path

* feat: highlight matched topic in helptags preview

* fixup: Use previewer setup and teardown

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
This commit is contained in:
Senghan Bright
2020-10-07 23:00:59 +02:00
committed by GitHub
parent a7957b2bdc
commit c337911b79
2 changed files with 22 additions and 3 deletions

View File

@@ -163,8 +163,7 @@ function actions.close(prompt_bufnr)
vim.api.nvim_win_close(prompt_win, true)
pcall(vim.cmd, string.format([[silent bdelete! %s]], prompt_bufnr))
a.nvim_set_current_win(original_win_id)
pcall(a.nvim_set_current_win, original_win_id)
end
actions.set_command_line = function(prompt_bufnr)