dotfiles/.config/nvim/lua/config/ctrlp.lua

16 lines
410 B
Lua
Raw Normal View History

2022-01-18 14:10:24 +01:00
local g = vim.g
g.ctrlp_map = "<leader>t"
2022-01-18 15:14:03 +01:00
-- g.ctrlp_use_caching = 1
-- g.ctrlp_clear_cache_on_exit = 0
-- g.ctrlp_cache_dir = "./.vim/cache/ctrlp"
2022-01-18 14:10:24 +01:00
g.ctrlp_user_command = {
'.git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'
}
--Limit max number of files
--This prevents me from indexing my entire HOME by accident
2022-01-18 15:14:03 +01:00
g.ctrlp_max_files = 1000
2022-01-18 14:10:24 +01:00
--Also limit recursion depth
2022-01-18 15:14:03 +01:00
g.ctrlp_max_depth = 10