mirror of
https://github.com/soywod/himalaya.git
synced 2024-09-29 12:31:13 +00:00
fix mbox vim plugin telescope preview (#249)
This commit is contained in:
parent
ee86afe756
commit
c332042ac8
|
@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Range not displayed when fetch fails [#276]
|
- Range not displayed when fetch fails [#276]
|
||||||
- Blank lines and spaces in `text/plain` parts [#280]
|
- Blank lines and spaces in `text/plain` parts [#280]
|
||||||
- Watch command [#271]
|
- Watch command [#271]
|
||||||
|
- Mailbox telescope.nvim preview [#249]
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -370,6 +371,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
[#220]: https://github.com/soywod/himalaya/issues/220
|
[#220]: https://github.com/soywod/himalaya/issues/220
|
||||||
[#228]: https://github.com/soywod/himalaya/issues/228
|
[#228]: https://github.com/soywod/himalaya/issues/228
|
||||||
[#229]: https://github.com/soywod/himalaya/issues/229
|
[#229]: https://github.com/soywod/himalaya/issues/229
|
||||||
|
[#249]: https://github.com/soywod/himalaya/issues/249
|
||||||
[#268]: https://github.com/soywod/himalaya/issues/268
|
[#268]: https://github.com/soywod/himalaya/issues/268
|
||||||
[#272]: https://github.com/soywod/himalaya/issues/272
|
[#272]: https://github.com/soywod/himalaya/issues/272
|
||||||
[#273]: https://github.com/soywod/himalaya/issues/273
|
[#273]: https://github.com/soywod/himalaya/issues/273
|
||||||
|
|
|
@ -10,7 +10,7 @@ local previewers = require('telescope.previewers')
|
||||||
local function preview_command(entry, bufnr)
|
local function preview_command(entry, bufnr)
|
||||||
vim.api.nvim_buf_call(bufnr, function()
|
vim.api.nvim_buf_call(bufnr, function()
|
||||||
local page = 0 -- page 0 for preview
|
local page = 0 -- page 0 for preview
|
||||||
local account = pcall(vim.fn['himalaya#account#curr'])
|
local account = vim.fn['himalaya#account#curr']()
|
||||||
local success, output = pcall(vim.fn['himalaya#msg#list_with'], account, entry.value, page, true)
|
local success, output = pcall(vim.fn['himalaya#msg#list_with'], account, entry.value, page, true)
|
||||||
if not (success) then
|
if not (success) then
|
||||||
vim.cmd('redraw')
|
vim.cmd('redraw')
|
||||||
|
|
Loading…
Reference in a new issue