From 425f6135ec366b9c38b00c8936ad728dbf377714 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Tue, 21 Mar 2023 19:22:45 +0100 Subject: lazy all --- lua/utilities/util.lua | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 lua/utilities/util.lua (limited to 'lua/utilities/util.lua') diff --git a/lua/utilities/util.lua b/lua/utilities/util.lua deleted file mode 100644 index ec6c400..0000000 --- a/lua/utilities/util.lua +++ /dev/null @@ -1,19 +0,0 @@ -local M = {} - -function M.telescope(builtin, opts) - local params = { builtin = builtin, opts = opts } - return function() - builtin = params.builtin - opts = params.opts - opts = vim.tbl_deep_extend("force", { cwd = M.get_root() }, opts or {}) - if builtin == "files" then - if vim.loop.fs_stat((opts.cwd or vim.loop.cwd()) .. "/.git") then - opts.show_untracked = true - builtin = "git_files" - else - builtin = "find_files" - end - end - require("telescope.builtin")[builtin](opts) - end -end -- cgit v1.2.3