thqby / vscode-autohotkey2-lsp

Autohotkey v2 Language Support using vscode-lsp.
https://marketplace.visualstudio.com/items?itemName=thqby.vscode-autohotkey2-lsp
GNU Lesser General Public License v3.0
219 stars 21 forks source link

Sublime text? #204

Closed DonovanZeanah closed 2 years ago

DonovanZeanah commented 2 years ago

I saw your post about getting it to work in sublime text? I would LOVE to get this working, but couldn't quite understand the setup? Is there a certain place I should place the folder? this is what i have in my sublime preferences.sublime-settings file:

  "clients": {
        "ahk2-lsp": {
            "enabled": true,
            "command": ["node.exe", "d:/ahk/vscode-autohotkey2-lsp/server/dist/server.js", "--stdio"], // Update the PATH
            "selector": ["source.ahk2", "source.ah2"],
            "env": {
                "AHK2_LS_CONFIG": "{\"locale\":\"en-us\",\"InterpreterPath\":\"C:/Program Files/Autohotkey/AutoHotkey32.exe\",\"AutoLibInclude\":0}",
            },
            "schemes": ["file", "buffer", "res"],
        },
    },
thqby commented 2 years ago

ahk2-lsp in Sublime Text4

In addition, syntax highlighting needs to be reimplemented in the editor, and ahk2-lsp provides semantic highlighting, Intellisense, symbol renaming, document symbol, parameter prompt, formatting and other features. See README for details.

thqby commented 2 years ago

AutoHotkey2.sublime-syntax.zip This is a simple sublime syntax highlighting, in the path C:\Users\username\AppData\Roaming\Sublime Text\Packages\User\LSP-ahk2\AutoHotkey2.sublime-syntax