diff options
author | gxlin <[email protected]> | 2021-08-20 21:39:03 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-08-20 21:39:03 +0800 |
commit | 1e1c02f8a12445ca8b9e4166ea4098af65b0cf68 (patch) | |
tree | 6f240014a7c38b2d562dd4b103e0148ef1353747 | |
parent | 0e737c44adc0aeae73003337f9638de493904196 (diff) | |
download | dotfiles-1e1c02f8a12445ca8b9e4166ea4098af65b0cf68.tar.gz dotfiles-1e1c02f8a12445ca8b9e4166ea4098af65b0cf68.tar.bz2 dotfiles-1e1c02f8a12445ca8b9e4166ea4098af65b0cf68.zip |
Update config
-rw-r--r-- | .msmtprc | bin | 518 -> 518 bytes | |||
-rw-r--r-- | .mutt/muttrc | 2 | ||||
-rw-r--r-- | .vim/filetype.vim | 4 | ||||
-rw-r--r-- | .vim/plugin/init.vim | 1 | ||||
-rw-r--r-- | .vim/plugin/leaderf.vim | 12 |
5 files changed, 15 insertions, 4 deletions
Binary files differ diff --git a/.mutt/muttrc b/.mutt/muttrc index efe5ba5..d154b41 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -21,7 +21,7 @@ set forward_quote=yes auto_view text/html macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>' -macro index 's' '<save-message>?' +macro index,pager 's' '<save-message>?' macro attach 'V' "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html<enter><shell-escape>$BROWSER ~/.cache/mutt/mail.html<enter>" diff --git a/.vim/filetype.vim b/.vim/filetype.vim index a1d5d7c..82fa01c 100644 --- a/.vim/filetype.vim +++ b/.vim/filetype.vim @@ -1,4 +1,6 @@ augroup filetypedetect - autocm BufRead,BufNewFile *.org setfiletype org + autocmd BufRead,BufNewFile *.org setfiletype org + autocmd BufRead,BufNewFile *nginx.conf setfiletype nginx + autocmd BufRead,BufNewFile /etc/nginx*.conf setfiletype nginx autocmd BufRead,BufNewFile *mutt-* setfiletype mail augroup end diff --git a/.vim/plugin/init.vim b/.vim/plugin/init.vim index afa2e55..cdd17ea 100644 --- a/.vim/plugin/init.vim +++ b/.vim/plugin/init.vim @@ -21,7 +21,6 @@ Plug 'Valloric/YouCompleteMe', { \ 'do': 'python3 ./install.py --clangd-completer', \ } Plug 'prabirshrestha/vim-lsp' -Plug 'mattn/vim-lsp-settings' Plug 'dense-analysis/ale' Plug 'sheerun/vim-polyglot' diff --git a/.vim/plugin/leaderf.vim b/.vim/plugin/leaderf.vim index 043fe1b..41c1088 100644 --- a/.vim/plugin/leaderf.vim +++ b/.vim/plugin/leaderf.vim @@ -1,7 +1,14 @@ -" " Show icons, icons are shown by default let g:Lf_ShowDevIcons = 1 +let g:Lf_UseCache = 0 + +let g:Lf_CommandMap = { + \ '<C-J>': ['<C-N>'], + \ '<C-K>': ['<C-P>'], + \ '<ESC>': ['<C-G>'], + \ } let g:Lf_WindowPosition = 'popup' +let g:Lf_PreviewInPopup = 1 let g:Lf_ShortcutF = "<leader>ff" noremap <leader>fb :<C-U><C-R>=printf("Leaderf buffer %s", "")<CR><CR> @@ -9,6 +16,9 @@ noremap <leader>fm :<C-U><C-R>=printf("Leaderf mru %s", "")<CR><CR> noremap <leader>ft :<C-U><C-R>=printf("Leaderf bufTag %s", "")<CR><CR> noremap <leader>fl :<C-U><C-R>=printf("Leaderf line %s", "")<CR><CR> noremap <leader>fr :<C-U><C-R>=printf("Leaderf rg %s", "")<CR><CR> +noremap <leader>fs :<C-U><C-R>=printf("Leaderf self %s", "")<CR><CR> +noremap <leader>fc :<C-U><C-R>=printf("Leaderf command %s", "")<CR><CR> +noremap <leader>f<space> :Leaderf<space> noremap <C-B> :<C-U><C-R>=printf("Leaderf! rg --current-buffer -e %s ", expand("<cword>"))<CR> noremap <C-F> :<C-U><C-R>=printf("Leaderf! rg -e %s ", expand("<cword>"))<CR> |