GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nvim-java/doc/ts-to-lua-guide.md at main · nvim-java/nvim-java

Expand file tree

/

ts-to-lua-guide.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (27 loc) · 866 Bytes
/

ts-to-lua-guide.md

Copy path

File metadata and controls

35 lines (27 loc) · 866 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Personal Notes

Communication

We are using request function of vim.lsp.Client function to communicate with the jdtls.

fun(method: string, params: table?, handler: lsp.Handler?, bufnr: integer?): boolean, integer?`)

This has almost 1 to 1 mapping with vscode APIs most of the time.

await this.languageClient.sendRequest(
  method: string,
  params: any,
  // handler is not passed since there is async / await
  // buffer I'm guessing is set to current buffer by default???
);

However, some APIs sends more arguments, to which we don't have a Neovim lua equivalent I'm guessing. Following is an example.

await this.languageClient.sendRequest(
  CompileWorkspaceRequest.type,
  isFullCompile,
  token,
);

To make this request, probably client.rpc.request should be used without request() wrapper.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.