diff options
Diffstat (limited to 'plug-config')
-rw-r--r-- | plug-config/closetags.vim | 4 | ||||
-rw-r--r-- | plug-config/floaterm.vim | 8 | ||||
-rw-r--r-- | plug-config/fzf.vim | 11 | ||||
-rw-r--r-- | plug-config/vista.vim | 9 |
4 files changed, 30 insertions, 2 deletions
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 = '<F1>' +let g:floaterm_keymap_next = '<F2>' +let g:floaterm_keymap_prev = '<F3>' +let g:floaterm_keymap_new = '<F4>' 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(<q-args>), 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(<q-args>), 1, - \ fzf#vim#with_preview(), <bang>0) + \ 'rg --column --line-number --hidden --smart-case --no-heading --color=always '.shellescape(<q-args>), 1, + \ <bang>0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%') + \ : fzf#vim#with_preview({'options': '--delimiter : --nth 4.. -e'}, 'right:50%', '?'), + \ <bang>0) \ fzf#vim#with_preview(), <bang>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", +\ } |