📝 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

@ -47,6 +47,7 @@ return require("packer").startup(function(use)
})
-- use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
use({ "junegunn/fzf.vim" })
use({ "kien/ctrlp.vim"})
use({ "rinx/nvim-ripgrep" })
use({ "mbbill/undotree" })
use({

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%' }]])