Skip to content

PowerShell Autocomplete - Remove parens for function calls #1793

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

Open
2 tasks done
jpbruckler opened this issue May 20, 2025 · 0 comments
Open
2 tasks done

PowerShell Autocomplete - Remove parens for function calls #1793

jpbruckler opened this issue May 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jpbruckler
Copy link

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

When completing a function call in PowerShell files, parentheses are added to the end of the function, which is incorrect syntax for PowerShell.

Expected:

Write-Host

Actual:

Write-Host()

I've worked around this with the config snippet below.

Relevant configuration

opts = {
      keymap = { preset = "default" },
      appearance = {
        nerd_font_variant = "mono",
      },
      completion = {
        documentation = {
          auto_show = true,
        },
        accept = {
          auto_brackets = {
            kind_resolution = {
              enabled = true,
              blocked_filetypes = { "ps1" },
            },
            semantic_token_resolution = {
              enabled = true,
              blocked_filetypes = { "ps1" },
              -- How long to wait for semantic tokens to return before assuming no brackets should be added
              timeout_ms = 400,
            },
          },
        },
      },
  ...
},

neovim version

NVIM v0.11.0-dev-2044+gaafbd442b2 Build type: RelWithDebInfo LuaJIT 2.1.1741730670

blink.cmp version

1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant