File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ export function nerdfont<T extends Detail>(): Renderer<T> {
1818 const { path } = item . detail ;
1919 const icon = fromPattern ( path ) ??
2020 fromBasename ( path ) ??
21- fromExtension ( path ) ;
22- if ( ! icon ) return ;
21+ fromExtension ( path ) ??
22+ extensionJson [ "." ] ;
2323 const prefix = `${ icon } ` ;
2424 const offset = getByteLength ( prefix ) ;
2525 item . label = `${ prefix } ${ item . label } ` ;
Original file line number Diff line number Diff line change 1- import type { Entrypoint } from "jsr:@lambdalisue/vim-fall@^0.12.0/config" ;
2- import { pipeProjectors } from "jsr:@lambdalisue/vim-fall@^0.12.0/projector" ;
3- import * as builtin from "jsr:@lambdalisue/vim-fall@^0.12.0/builtin" ;
1+ import type { Entrypoint } from "jsr:@lambdalisue/vim-fall@^0.13.0/config" ;
2+ import { pipeProjectors } from "jsr:@lambdalisue/vim-fall@^0.13.0/projector" ;
3+ import { composeRenderer } from "jsr:@lambdalisue/vim-fall@^0.13.0/renderer" ;
4+ import * as builtin from "jsr:@lambdalisue/vim-fall@^0.13.0/builtin" ;
45
56const quickfixActions = {
67 ...builtin . action . defaultQuickfixActions ,
@@ -99,7 +100,10 @@ export const main: Entrypoint = (
99100 ) ,
100101 {
101102 matcher : builtin . matcher . fzf ,
102- renderer : builtin . renderer . smartPath ,
103+ renderer : composeRenderer (
104+ builtin . renderer . smartPath ,
105+ builtin . renderer . nerdfont ,
106+ ) ,
103107 previewer : builtin . previewer . file ,
104108 actions : {
105109 ...quickfixActions ,
You can’t perform that action at this time.
0 commit comments