neomutt: use nvim to read mail

nvim now also has a plugin to parse URLs better
This commit is contained in:
dogeystamp 2023-04-09 12:23:12 -04:00
parent dcee2ccddf
commit bbb5c437bc
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 15 additions and 0 deletions

View File

@ -13,3 +13,6 @@ bind index,pager \CP sidebar-prev
bind index,pager \CN sidebar-next
bind index,pager \CO sidebar-open
bind index,pager \CB sidebar-toggle-visible
set wait_key=no
macro index,pager \Cb "<enter-command>set pipe_decode = yes<enter><pipe-message>nvim -R -c 'set filetype=mail' <enter><enter-command>set pipe_decode = no<enter>"

View File

@ -131,6 +131,8 @@ endif
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'axieax/urlview.nvim'
call plug#end()
lua << EOF
@ -152,6 +154,16 @@ require'nvim-treesitter.configs'.setup {
}
EOF
lua << EOF
require("urlview").setup({
jump = {
prev = "<leader>uj",
next = "<leader>uh",
},
})
EOF
:nnoremap <silent><leader>uu :let @+ = expand('<cfile>')<CR>
" Code folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()