Compare commits

...

2 Commits

Author SHA1 Message Date
8b3a4d08ca
.profile: move mailcap to .config/mailcap 2023-04-09 12:45:26 -04:00
bbb5c437bc
neomutt: use nvim to read mail
nvim now also has a plugin to parse URLs better
2023-04-09 12:23:12 -04:00
3 changed files with 16 additions and 1 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()

View File

@ -22,7 +22,7 @@ export GNUPGHOME="$XDG_DATA_HOME"/gnupg
# pass
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
# tuir
export MAILCAPS="$XDG_CONFIG_HOME"/tuir/mailcap
export MAILCAPS="$XDG_CONFIG_HOME"/mailcap
# terminfo
export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo