📝 Reinstalled CtrlP, better than fzf...
This commit is contained in:
parent
190dc0f0e2
commit
a508805dcc
2 changed files with 6 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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%' }]])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue