Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change commenttype for comment plugin #29

Open
evanescente-ondine opened this issue Aug 5, 2024 · 1 comment
Open

Can't change commenttype for comment plugin #29

evanescente-ondine opened this issue Aug 5, 2024 · 1 comment

Comments

@evanescente-ondine
Copy link

evanescente-ondine commented Aug 5, 2024

Hi,
I can't seem to change the comment type for the comment plugin.
Here's my settings.json:

{
    "colorscheme": "simple",
    "cursorline": false,
    "divchars": "true",
    "hlsearch": true,
    "softwrap": true,
    "wordwrap": true,
}
{
    "*.adb" {
        "commenttype": "-- %s"
    }
}

I tried with

{
    "colorscheme": "simple",
    "cursorline": false,
    "divchars": "true",
    "hlsearch": true,
    "softwrap": true,
    "wordwrap": true,
    "*.adb" {
        "commenttype": "-- %s"
    }
}

and it doesn't work either. Same "#".
I get "Error reading settings.json: invalid character '{' after top-level value" or "Error reading settings.json: invalid character '"' after top-level value".

@niten94
Copy link

niten94 commented Aug 6, 2024

All options in settings.json are in the root JSON object starting at { at beginning of file and ending in }, so settings.json cannot be written like this:

{
    "softwrap": true
}
{
    "wordwrap": true
}

There was an error with { being invalid character when reading settings.json because colon (:) has to be inserted between "*.adb" and {. Colon is inserted between key ("*.adb") and value ({ ... }) like this:

{
    "colorscheme": "simple",
    "cursorline": false,
    "divchars": "true",
    "hlsearch": true,
    "softwrap": true,
    "wordwrap": true,
    "*.adb": {
        "commenttype": "-- %s"
    }
}

This repository only contains the code of the website but the code of micro is at https://github.com/zyedidia/micro, so please open issues related with micro there instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants