pmizio / typescript-tools.nvim

⚡ TypeScript integration NeoVim deserves ⚡
MIT License
1.48k stars 43 forks source link

bug: settings.complete_function_calls doesn't work as expected #291

Closed shyamayadav154 closed 1 month ago

shyamayadav154 commented 2 months ago
--- mirror of VSCode's `typescript.suggest.completeFunctionCalls`
    complete_function_calls = false,

Current Behaviour

on false: imports the function with parentheses ( ) on true: has no issues

Expected Behaviour or vscode behaviour with same setting

on false: imports the function without parentheses

This setting causes react functional component to import with the parentheses and no way to fix it right now

KostkaBrukowa commented 2 months ago

I think it's duplicate of https://github.com/pmizio/typescript-tools.nvim/issues/239. For now a PR to solve is open, but author haven't made any progress for some time. https://github.com/pmizio/typescript-tools.nvim/pull/240

shyamayadav154 commented 1 month ago

apologies for not checking, and thank you for the info