neomutt: use nvim to read mail
nvim now also has a plugin to parse URLs better
This commit is contained in:
parent
dcee2ccddf
commit
bbb5c437bc
@ -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>"
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user