diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-21 23:35:44 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-21 23:35:44 +0900 |
| commit | 49d98c9f79d98971d728174b49566d6657cffcb7 (patch) | |
| tree | 15833c375ebf2a0c35c09b193a0c8e383a2d6e2b /ar | |
| parent | 9976fcacc348b7ac1f49bcb763e95d630f6572a3 (diff) | |
Diffstat (limited to 'ar')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/telescope.lua | 31 | ||||
| -rwxr-xr-x | ar/.config/lf/scope | 2 |
2 files changed, 23 insertions, 10 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/telescope.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/telescope.lua index ddb31de..966a8e0 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/telescope.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/telescope.lua @@ -286,7 +286,7 @@ return { }, }, vimgrep_arguments = { - "rg", + "/usr/bin/rg", "--color=never", "--no-heading", "--with-filename", @@ -632,12 +632,16 @@ return { "%lock%.json", }, find_command = { - "rg", + "/usr/bin/rg", "--files", "--follow", "--hidden", "--no-ignore", "--sortr=modified", + "--glob", + "!**/.next/*", + "--glob", + "!**/node_modules/*", }, hidden = true, path_display = { @@ -668,7 +672,7 @@ return { find_files = { -- `hidden = true` will still show the inside of `.git/` as it's not `.gitignore`d. find_command = { - "rg", + "/usr/bin/rg", "--files", "--follow", "--hidden", @@ -678,9 +682,9 @@ return { "--glob", "!**/.git/*/*/*", "--glob", - "!**/.next/*/*/*", + "!**/.next/*", "--glob", - "!**/node_modules/*/*/*", + "!**/node_modules/*", }, }, }, @@ -735,7 +739,7 @@ return { pickers .new({}, { prompt_title = "Find Files", - finder = finders.new_oneshot_job({ "fd", "--type", "f" }, { + finder = finders.new_oneshot_job({ "/usr/bin/fd", "--type", "f" }, { entry_maker = function(entry) local is_open = opened_files[vim.fn.fnamemodify(entry, ":p")] -- Match absolute paths local displayer = entry_display.create({ @@ -766,7 +770,7 @@ return { require("telescope.builtin").find_files({ cwd = vim.fn.expand("~"), find_command = { - "rg", + "/usr/bin/rg", "--files", "--follow", "--hidden", @@ -820,7 +824,16 @@ return { vim.keymap.set("n", "<leader>fv", function() require("telescope.builtin").find_files({ cwd = vim.fn.stdpath("config"), - find_command = { "fd", "--type", "f", "--follow", "--color", "never", "--extension", "lua" }, + find_command = { + "/usr/bin/fd", + "--type", + "f", + "--follow", + "--color", + "never", + "--extension", + "lua", + }, }) end, { desc = "Find neovim config files" }) vim.keymap.set("n", "<leader>fV", function() @@ -1061,7 +1074,7 @@ return { -- defaults to {"png", "jpg", "mp4", "webm", "pdf"} filetypes = { "png", "jpg", "mp4", "mkv", "webm", "pdf" }, -- find command (defaults to `fd`) - find_cmd = "rg", + find_cmd = "/usr/bin/rg", }, }, }) diff --git a/ar/.config/lf/scope b/ar/.config/lf/scope index fc26f5e..c287f43 100755 --- a/ar/.config/lf/scope +++ b/ar/.config/lf/scope @@ -43,7 +43,7 @@ image/x-xcf) image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;; text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; text/troff) man ./ "$1" | col -b ;; -text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4 - 2))" -f "$1" ;; +text/* | */xml | application/json | application/java* | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4 - 2))" -f "$1" ;; audio/*) mediainfo "$1" || exit 1 ;; video/* | application/octet-stream | application/vnd.rn-realmedia) CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)" |
