1package main
 2
 3// Provides a way to view all detected file types and their associated LSP
 4// (Language Server Protocol) configurations.
 5
 6import (
 7	"fmt"
 8	"strings"
 9)
10
11// PrintInfo prints a summary table of all supported languages and their LSP setup.
12func PrintInfo() {
13	// Table header.
14	fmt.Printf("%-15s %-10s %-20s\n", "Name", "LSP", "Command")
15	fmt.Println(strings.Repeat("-", 80))
16
17	for _, ft := range fileTypes {
18		lspEnabled := "no"
19		if ft.EnableLSP {
20			lspEnabled = "yes"
21		}
22
23		lspCmd := ft.LSPCommand
24		// Append arguments if they exist (e.g., --stdio).
25		if len(ft.LSPCommandArgs) > 0 {
26			lspCmd += " " + strings.Join(ft.LSPCommandArgs, " ")
27		}
28
29		fmt.Printf("%-15s %-10s %-20s\n", ft.Name, lspEnabled, lspCmd)
30	}
31}