📝 Reinstalled CtrlP, better than fzf...

This commit is contained in:
z3rOR0ne 2023-04-06 19:54:21 -07:00
parent 190dc0f0e2
commit a508805dcc
2 changed files with 6 additions and 1 deletions

View file

@ -43,7 +43,7 @@ vim.cmd([[function TrimWhiteSpace()
%s/\s*$//
''
endfunction]])
--Removes trailing spaces on save
-- Removes trailing spaces on save
vim.cmd([[autocmd FileWritePre * call TrimWhiteSpace()]])
vim.cmd([[autocmd FileAppendPre * call TrimWhiteSpace()]])
vim.cmd([[autocmd FilterWritePre * call TrimWhiteSpace()]])
@ -90,6 +90,10 @@ endfunction]])
vim.cmd([[command! -nargs=* FZFExplore call FzfExplore(shellescape(<q-args>))]])
-- CtrlP will ignore .git and node_modules directories
vim.cmd([[set wildignore+=*/node_modules/*,*/.git/*]])
vim.cmd([[let g:ctrlp_custom_ignore = '\v[\/]\.(git|node_modules)']])
-- fzf is on bottom of screen
-- vim.cmd([[let g:fzf_layout = { 'down': '~30%' }]])