aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-04-09 09:51:21 +0200
committerKarel Kočí <cynerd@email.cz>2024-04-09 09:51:21 +0200
commitf4fa02469356088a1d7934bf1f3c7bcd83101a73 (patch)
treed9957dbe963bbbcda689354b8e0b09197a3ea310
parentb2829b94d7b50e0398ab9e2bea4f8b6429ac2800 (diff)
downloadmyconfigs-f4fa02469356088a1d7934bf1f3c7bcd83101a73.tar.gz
myconfigs-f4fa02469356088a1d7934bf1f3c7bcd83101a73.tar.bz2
myconfigs-f4fa02469356088a1d7934bf1f3c7bcd83101a73.zip
nvim/telescope: simplify git command
-rw-r--r--config/nvim/lua/mytelescopefiles.lua7
m---------private0
2 files changed, 2 insertions, 5 deletions
diff --git a/config/nvim/lua/mytelescopefiles.lua b/config/nvim/lua/mytelescopefiles.lua
index 46253eb..733a1d8 100644
--- a/config/nvim/lua/mytelescopefiles.lua
+++ b/config/nvim/lua/mytelescopefiles.lua
@@ -5,14 +5,11 @@ return function()
local root, ret = utils.get_os_command_output({ "git", "rev-parse", "--show-toplevel" }, vim.fn.expand("%:h"))
if ret == 0 then
ts.git_files({
+ cwd = root[1],
git_command = {
"sh",
"-c",
- "git -C "
- .. root[1]
- .. " ls-files -c --recurse-submodules && git -C "
- .. root[1]
- .. " ls-files -o --exclude-standard",
+ "git ls-files -c --recurse-submodules && git ls-files -o --exclude-standard",
},
})
else
diff --git a/private b/private
-Subproject 07839bc4748f841f9134a81475b42f8f4c2053c
+Subproject b6ba779e4a9da9325df5e57e2a1898d150171c9