languages

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLanguage

func DetectLanguage(filename string) (string, error)

DetectLanguage attempts to determine the language from the file extension. It returns the language name (key in registry) and an error if not found.

Types

type LanguageConfig

type LanguageConfig struct {
	SitterLanguage  *sitter.Language
	QueryFileName   string
	LSPCommand      string
	LSPArgs         []string
	IgnoredCaptures []string
	Extensions      []string
}

func GetConfig

func GetConfig(language string) (*LanguageConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址