From 1e1c02f8a12445ca8b9e4166ea4098af65b0cf68 Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 20 Aug 2021 21:39:03 +0800 Subject: Update config --- .vim/filetype.vim | 4 +++- .vim/plugin/init.vim | 1 - .vim/plugin/leaderf.vim | 12 +++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) (limited to '.vim') 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 = { + \ '': [''], + \ '': [''], + \ '': [''], + \ } let g:Lf_WindowPosition = 'popup' +let g:Lf_PreviewInPopup = 1 let g:Lf_ShortcutF = "ff" noremap fb :=printf("Leaderf buffer %s", "") @@ -9,6 +16,9 @@ noremap fm :=printf("Leaderf mru %s", "") noremap ft :=printf("Leaderf bufTag %s", "") noremap fl :=printf("Leaderf line %s", "") noremap fr :=printf("Leaderf rg %s", "") +noremap fs :=printf("Leaderf self %s", "") +noremap fc :=printf("Leaderf command %s", "") +noremap f :Leaderf noremap :=printf("Leaderf! rg --current-buffer -e %s ", expand("")) noremap :=printf("Leaderf! rg -e %s ", expand("")) -- cgit v1.2.3