diff options
| -rw-r--r-- | .vim/lua/plugins.lua | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index f553966..52588d5 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -1206,11 +1206,27 @@ require('packer').startup({function() config = function() end} -- }}} - use {'soywod/himalaya', rtp = 'vim', cmd = {'Himalaya'}, + use {'soywod/himalaya', cmd = {'Himalaya'}, -- {{{ + branch = 'development', + rtp = 'vim', + setup = function() + vim.api.nvim_create_autocmd('FileType', { + pattern = {'himalaya-msg-read', 'himalaya-msg-list'}, + callback = function() + vim.opt_local.list = false + vim.keymap.set('n', 'q', function() + vim.api.nvim_buf_delete(0, {}) + -- quit if no more buffers + -- if #vim.api.nvim_list_bufs() then vim.cmd [[quit]] end + end, {silent=true, buffer=0}) + end, + group = vim.api.nvim_create_augroup('Himalaya', {}), + }) + end, config = function() vim.g.himalaya_mailbox_picker = 'telescope' vim.g.himalaya_telescope_preview_enabled = true - end} + end} -- }}} end, config = { compile_path = compilepath, |