Skip to content

export RPC functions #108

Open
Open
@mhartington

Description

@mhartington
Contributor

This is more a tracking issue.

Pynvim offers the ability to export RPC functions from the plugin decorator. This should be supported by node-client as well.

Activity

changed the title [-]Supporting RPC functions[/-] [+]export RPC functions[/+] on Feb 22, 2020
justinmk

justinmk commented on Feb 22, 2020

@justinmk
Member

what would this look like? I'm not aware of "decorator" in node.js

rhysd

rhysd commented on Feb 23, 2020

@rhysd
SponsorMember

Decorator is a feature proposed to ECMAScript, but it's still on stage2 and not implemented in V8. TypeScript offers to transpile decorators via --experimentalDecorators compiler flag. So the decorator is only usable when this package is used via TypeScript.

https://www.typescriptlang.org/docs/handbook/decorators.html

justinmk

justinmk commented on Apr 17, 2024

@justinmk
Member

Instead of a decorator, this should be easy to do with a simple util function, which the node plugin can call at startup. See neovim/neovim#27949

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

        Participants

        @rhysd@justinmk@mhartington

        Issue actions

          export RPC functions · Issue #108 · neovim/node-client