dotfiles/.config/nvim/lua/telescope-config.lua
Tanguy Herbron f02cdb1f1e feat(vim): Migration configuration to Lua
Every configuration file related to Neovim has been moved to Lua.
This comes with a variety of updatly around theming and implementation for better compatiblity accross the environment.
2023-04-07 18:24:48 +02:00

14 lines
308 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