Tanguy Herbron
f02cdb1f1e
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.
14 lines
308 B
Lua
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
|