mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-24 22:58:38 +01:00
joshuto: Ensure TypeScript/JavaScript files show previews
This commit is contained in:
parent
5a08ca328c
commit
bd67cf43a9
@ -482,7 +482,11 @@
|
|||||||
|
|
||||||
handle_extension() {
|
handle_extension() {
|
||||||
case "''${FILE_EXTENSION_LOWER}" in
|
case "''${FILE_EXTENSION_LOWER}" in
|
||||||
lock)
|
ts | js | lock)
|
||||||
|
bat --color=always --paging=never \
|
||||||
|
--style=plain \
|
||||||
|
--terminal-width="''${PREVIEW_WIDTH}" \
|
||||||
|
"''${FILE_PATH}" && exit 0
|
||||||
cat "''${FILE_PATH}" && exit 0
|
cat "''${FILE_PATH}" && exit 0
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user