Some quality of life nvim improvements

This commit is contained in:
Jef Roosens 2022-01-18 15:14:03 +01:00
parent da12818fc8
commit c8af8c155a
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
4 changed files with 10 additions and 16 deletions

View file

@ -1,15 +1,15 @@
local g = vim.g
g.ctrlp_map = "<leader>t"
g.ctrlp_use_caching = 1
g.ctrlp_clear_cache_on_exit = 0
g.ctrlp_cache_dir = "./.vim/cache/ctrlp"
-- g.ctrlp_use_caching = 1
-- g.ctrlp_clear_cache_on_exit = 0
-- g.ctrlp_cache_dir = "./.vim/cache/ctrlp"
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
g.ctrlp_max_files = 10000
g.ctrlp_max_files = 1000
--Also limit recursion depth
g.ctrlp_max_depth = 40
g.ctrlp_max_depth = 10