From 5977c59876bd41de06461b81b6758dafe097faed Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 10 May 2020 16:20:02 -0400 Subject: lots of good stuff --- plug-config/closetags.vim | 4 ++++ plug-config/floaterm.vim | 8 ++++++++ plug-config/fzf.vim | 11 +++++++++-- plug-config/vista.vim | 9 +++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 plug-config/closetags.vim create mode 100644 plug-config/floaterm.vim create mode 100644 plug-config/vista.vim (limited to 'plug-config') diff --git a/plug-config/closetags.vim b/plug-config/closetags.vim new file mode 100644 index 00000000..e3e964bc --- /dev/null +++ b/plug-config/closetags.vim @@ -0,0 +1,4 @@ +let g:closetag_filenames = '*.html,*.xhtml,*.phtml' +let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.js' +let g:closetag_filetypes = 'html,xhtml,phtml,javascript' + diff --git a/plug-config/floaterm.vim b/plug-config/floaterm.vim new file mode 100644 index 00000000..b0ee674c --- /dev/null +++ b/plug-config/floaterm.vim @@ -0,0 +1,8 @@ + +" let g:floaterm_wintype='normal' +" let g:floaterm_height=6 + +let g:floaterm_keymap_toggle = '' +let g:floaterm_keymap_next = '' +let g:floaterm_keymap_prev = '' +let g:floaterm_keymap_new = '' diff --git a/plug-config/fzf.vim b/plug-config/fzf.vim index c7ad00a2..c715dab5 100644 --- a/plug-config/fzf.vim +++ b/plug-config/fzf.vim @@ -47,10 +47,17 @@ command! -bang -nargs=? -complete=dir Files " Get text in files with Rg +" command! -bang -nargs=* Rg +" \ call fzf#vim#grep( +" \ "rg --column --line-number --no-heading --color=always --smart-case --glob '!.git/**' ".shellescape(), 1, + + " Make Ripgrep ONLY search file contents and not filenames command! -bang -nargs=* Rg \ call fzf#vim#grep( - \ "rg --column --line-number --no-heading --color=always --smart-case --glob '!.git/**' ".shellescape(), 1, - \ fzf#vim#with_preview(), 0) + \ 'rg --column --line-number --hidden --smart-case --no-heading --color=always '.shellescape(), 1, + \ 0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%') + \ : fzf#vim#with_preview({'options': '--delimiter : --nth 4.. -e'}, 'right:50%', '?'), + \ 0) \ fzf#vim#with_preview(), 0) " Ripgrep advanced function! RipgrepFzf(query, fullscreen) diff --git a/plug-config/vista.vim b/plug-config/vista.vim new file mode 100644 index 00000000..eefc8366 --- /dev/null +++ b/plug-config/vista.vim @@ -0,0 +1,9 @@ +let g:vista_default_executive = 'coc' +let g:vista_fzf_preview = ['right:50%'] + +let g:vista#renderer#enable_icon = 1 + +let g:vista#renderer#icons = { +\ "function": "\uf794", +\ "variable": "\uf71b", +\ } -- cgit v1.2.3