dotfiles/.config/nvim/lua/telescope-config.lua

14 lines
304 B
Lua

local M = {}
M.project_files = function()
local opts = {}
vim.fn.system('git rev-parse is-inside-work-tree')
if vim.v.shell_error == 0 then
require"telescope.builtin".git_files({show_untracked=true})
else
require"telescope.builtin".find_files(opts)
end
end
return M