Documentation
¶
Index ¶
- Variables
- func FormatIntSlice(values []int) string
- func FormatStringSlice(values []string) string
- func LoadRawConfig(path string) (map[string]any, bool)
- func LoadRawConfigForDir(dir string) (map[string]any, bool)
- func LoadRawConfigForWorkspace(global, workspace, dir string) (map[string]any, bool)
- func ParseBool(value string) (bool, error)
- func ParseIntSlice(value string) ([]int, error)
- func ParseNonNegInt(value string) (int, error)
- func ParsePositiveInt(value string) (int, error)
- func ParseStringLiteral(value string) (string, error)
- func ParseStringSlice(value string) ([]string, error)
- type AutoSave
- type AutoSaveAfterDelay
- type EditorConfig
- type Search
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidOption = errors.New("invalid option")
)
Functions ¶
func FormatIntSlice ¶
func FormatStringSlice ¶
func LoadRawConfig ¶
LoadRawConfig returns the raw merged TOML map for the given config file path
func LoadRawConfigForDir ¶
LoadRawConfigForDir returns user config merged with dir's trusted workspace config
func ParseIntSlice ¶
func ParseNonNegInt ¶
func ParsePositiveInt ¶
func ParseStringLiteral ¶
func ParseStringSlice ¶
Types ¶
type AutoSave ¶
type AutoSave struct {
FocusLost *bool `toml:"focus-lost"`
AfterDelay AutoSaveAfterDelay `toml:"after-delay"`
}
func (*AutoSave) UnmarshalTOML ¶
type AutoSaveAfterDelay ¶
type EditorConfig ¶
type EditorConfig struct {
IndentStyle *core.IndentStyle
TabWidth *int
LineEnding *core.LineEnding
TrimTrailingWhitespace *bool
InsertFinalNewline *bool
MaxLineLength *int
}
func FindEditorConfig ¶
func FindEditorConfig(file string) *EditorConfig
Click to show internal directories.
Click to hide internal directories.