LSP for AutoHotkey

Discuss Autohotkey related topics here. Not a place to share code.
Forum rules
Discuss Autohotkey related topics here. Not a place to share code.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

LSP for AutoHotkey

Post by BoBo » 13 Mar 2021, 16:22

I’ve stumbled over :arrow: TabNine that is using the Language Server Protocol (LSP) for auto-completion, where AutoHotkey hasn't been listed already?! Is there any known effort to make this happen (what would support AHK on a bunch of well known editors in one go)?!

“ What is LSP?
The Language Server protocol is used between a tool (the client) and a language smartness provider (the server) to integrate features like auto complete, go to definition, find all references and alike into the tool
– official Language Server Protocol specification

The LSP was created by Microsoft to define a common language for programming language analyzers to speak. Today, several companies have come together to support its growth, including Codenvy, Red Hat, and Sourcegraph, and the protocol is becoming supported by a rapidly growing list of editor and language communities. See below for details on and links to current client and server implementations.

Why LSP?
LSP creates the opportunity to reduce the m-times-n complexity problem of providing a high level of support for any programming language in any editor, IDE, or client endpoint to a simpler m-plus-n problem.

For example, instead of the traditional practice of building a Python plugin for VSCode, a Python plugin for Sublime Text, a Python plugin for Vim, a Python plugin for Sourcegraph, and so on, for every language, LSP allows language communities to concentrate their efforts on a single, high performing language server that can provide code completion, hover tooltips, jump-to-definition, find-references, and more, while editor and client communities can concentrate on building a single, high performing, intuitive and idiomatic extension that can communicate with any language server to instantly provide deep language support.”
https://microsoft.github.io/language-server-protocol/implementors/tools/

guest3456
Posts: 3462
Joined: 09 Oct 2013, 10:31

Re: LSP for AutoHotkey

Post by guest3456 » 16 Mar 2021, 10:16

would be nice


jj4156
Posts: 19
Joined: 17 Jun 2019, 07:03
Contact:

Re: LSP for AutoHotkey

Post by jj4156 » 28 Mar 2021, 22:39

There were some kind of LSP for AutoHotkey already. But, they are not as perfect as you wished.
For v1, check this Helsmy's github link.
For v2, check this thqby's gitee link.

Post Reply

Return to “General Discussion”