File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 "fmt"
66 "io"
77
8+ "github.com/sourcegraph/src-cli/internal/api"
89 "github.com/sourcegraph/src-cli/internal/lsp"
910)
1011
@@ -38,18 +39,20 @@ Example Neovim configuration (0.11+):
3839`
3940
4041 flagSet := flag .NewFlagSet ("lsp" , flag .ExitOnError )
42+ apiFlags := api .NewFlags (flagSet )
43+
4144 usageFunc := func () {
45+ fmt .Println (usage )
4246 fmt .Fprintf (flag .CommandLine .Output (), "Usage of 'src %s':\n " , flagSet .Name ())
4347 flagSet .PrintDefaults ()
44- fmt .Println (usage )
4548 }
4649
4750 handler := func (args []string ) error {
4851 if err := flagSet .Parse (args ); err != nil {
4952 return err
5053 }
5154
52- client := cfg .apiClient (nil , io .Discard )
55+ client := cfg .apiClient (apiFlags , io .Discard )
5356
5457 srv , err := lsp .NewServer (client )
5558 if err != nil {
You can’t perform that action at this time.
0 commit comments