diff options
| author | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-06-10 11:29:44 +0200 |
|---|---|---|
| committer | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-06-10 11:29:44 +0200 |
| commit | 0f6ae6983de4c76f282add379f356ad68ff6d729 (patch) | |
| tree | de76143c1bd9aecbd8b700a5bdcb8bbc3f31b98c /config/nvim/lua/telescope-config.lua | |
| parent | 06953e8546259be3058c53cc1f1930a0b4a64585 (diff) | |
| parent | 796504bdf965fec883e620788d54bf90807361d5 (diff) | |
| download | dotfiles-0f6ae6983de4c76f282add379f356ad68ff6d729.tar.gz dotfiles-0f6ae6983de4c76f282add379f356ad68ff6d729.tar.bz2 dotfiles-0f6ae6983de4c76f282add379f356ad68ff6d729.zip | |
Merge branch 'master' of https://github.com/cacharle/dotfiles
Diffstat (limited to 'config/nvim/lua/telescope-config.lua')
| -rw-r--r-- | config/nvim/lua/telescope-config.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/nvim/lua/telescope-config.lua b/config/nvim/lua/telescope-config.lua new file mode 100644 index 0000000..fbb0c79 --- /dev/null +++ b/config/nvim/lua/telescope-config.lua @@ -0,0 +1,12 @@ +-- from: https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#falling-back-to-find_files-if-git_files-cant-find-a-git-directory +local M = {} + +M.project_files = function() + local opts = {} -- define here if you want to define something + local ok = pcall(require"telescope.builtin".git_files, opts) + if not ok then + require"telescope.builtin".find_files(opts) + end +end + +return M |
