File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ export async function sourceFishBuffer(bufferName: string) {
123123}
124124
125125export async function FishThemeDump ( ) {
126- return ( await execAsyncFish ( 'fish_config theme dump' ) ) . stdout . split ( '\n' ) ;
126+ return ( await execAsyncFish ( 'fish_config theme dump; or true ' ) ) . stdout . split ( '\n' ) ;
127127}
128128
129129export async function showCurrentTheme ( buffName : string ) {
130- const output = ( await execAsyncFish ( 'fish_config theme demo' ) ) . stdout . split ( '\n' ) ;
130+ const output = ( await execAsyncFish ( 'fish_config theme demo; or true ' ) ) . stdout . split ( '\n' ) ;
131131 // Append the longest line to the file
132132 for ( const line of output ) {
133133 appendFileSync ( buffName , `${ line } \n` , 'utf8' ) ;
@@ -147,7 +147,7 @@ const defaultThemeOptions: ThemeOptions = {
147147} ;
148148
149149export async function executeThemeDump ( buffName : string , options : ThemeOptions = defaultThemeOptions ) : Promise < ExecResultWrapper > {
150- const output = ( await execAsyncFish ( 'fish_config theme dump' ) ) . stdout . split ( '\n' ) ;
150+ const output = ( await execAsyncFish ( 'fish_config theme dump; or true ' ) ) . stdout . split ( '\n' ) ;
151151 // Append the longest line to the file
152152 if ( options . asVariables ) {
153153 appendFileSync ( buffName , '# created by fish-lsp' ) ;
You can’t perform that action at this time.
0 commit comments