add ability to change account vim plugin (#91)

This commit is contained in:
Clément DOUIN
2021-06-03 16:03:23 +02:00
parent edb2e181e7
commit e3d022720d
10 changed files with 160 additions and 72 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ local previewers = require('telescope.previewers')
local function preview_command(entry, bufnr)
vim.api.nvim_buf_call(bufnr, function()
local page = 0 -- page 0 for preview
local success, output = pcall(vim.fn['himalaya#msg#list_with'], entry.value, page, true)
local account = pcall(vim.fn['himalaya#account#curr'])
local success, output = pcall(vim.fn['himalaya#msg#list_with'], account, entry.value, page, true)
if not (success) then
vim.cmd('redraw')
vim.bo.modifiable = true