Skip to content

Config

The settings are stored in the file ~/.config/gole/config.toml.

You can also define variables in the environment to pass on the settings. Variables need the prefix GOLE_, for example GOLE_THEME.

The gole -c/--config subcommand can be used to help with the settings. Use gole --config for more details.

Options🔗

theme🔗

default=catppuccin-mocha

The theme to use.

soft_wrap🔗

default=False

Enable soft wrapping.

tab_behavior**🔗

default=indent

If 'focus', pressing tab will switch focus. If 'indent', pressing tab will insert a tab.

show_line_numbers🔗

default=True

Show line numbers on the left edge.

max_checkpoints🔗

default=50

The maximum number of undo history checkpoints to retain.

match_cursor_bracket🔗

default=True

If the cursor is at a bracket, highlight the matching bracket.

default=True

True if the cursor should blink.

close_automatic_pairs🔗

default=False

If True, every pair will be closed automatically, like: <>, '', "", (), [], {}.

show_tree🔗

default=True

Open tree on mount.

default=True

show the footer.

show_scroll🔗

default=True

Enable/disable scrollbar visualization.

newline_end_file🔗

default=False

Ensures that the end of the file always has a final line.

space_cleanup🔗

default=False

Removes whitespace after the end of lines.

text_line_fmt🔗

default='{name} {line}:{column}/{num_lines}'

File line space format.

tag description
{name} file name
{line} current cursor line
{column} current cursor column
{num_lines} total number of lines in the file

Languages🔗

Comments🔗

Language comment.

language.python.comment🔗

default='# {}'

language.json.comment🔗

default='// {}'

language.markdown.comment🔗

default=''

language.yaml.comment🔗

default='# {}'

language.toml.comment🔗

default='# {}'

language.html.comment🔗

default=''

language.css.comment🔗

default='/ {} /'

language.xml.comment🔗

default=''

language.regex.comment🔗

default='# {}'

language.sql.comment🔗

default='-- {}'

language.javascript.comment🔗

default='// {}'

language.java.comment🔗

default='// {}'

language.bash.comment🔗

default='# {}'

language.go.comment🔗

default='// {}'