Skip to content

[Feature Request] Autocomplete also inserts brackets at the end of functions() #2363

Open

Description

@AgentCucco

I did some research, and pretty much every other major language extension like javascript, c#/++ and python have settings to allow autocomplete to add brackets at the end of function calls. It would be nice to see this feature implemented in this extension.

As an example imagine I want to autocomplete the function foo, right now it autocompletes it as is, ideally it would autocomplete it as foo().

Activity

  1. Frityet commented on Oct 10, 2023

    @Frityet
    Contributor

    There's already an option that does this, I forgot what it's called though

  2. AgentCucco commented on Oct 10, 2023

    @AgentCucco
    Author

    I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.

  3. Frityet commented on Oct 12, 2023

    @Frityet
    Contributor

    I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.

    Screen.Recording.2023-10-12.at.12.19.52.mov

    like this?

  4. AgentCucco commented on Oct 12, 2023

    @AgentCucco
    Author

    I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.

    Screen.Recording.2023-10-12.at.12.19.52.mov
    like this?

    Yeah! Sorta. It's more like this. Though maybe it could have a setting to just add the brackets, and a setting to autocomplete the arguments. The video is spliced for showcase purposes.

    untitled.mp4
  5. distantforest1 commented on Jun 21, 2024

    @distantforest1

    Adding a little +1 here. In the majority of cases when using functions (I'd say about > 95%) you're actually calling the function. The other 5% or less is for when you want to use closures and the sort. Setting code snippet to "Replace" is alright but I find it gets in the way a lot. Also if you have overloads it forces to select the function first before typing it out.

  6. litoj commented on Apr 8, 2026

    @litoj

    You're looking for completion.callSnippet in https://luals.github.io/wiki/settings/?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions