Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request (neovim): more syntax highlighting #685

Open
tunaflsh opened this issue Feb 18, 2025 · 2 comments
Open

feature request (neovim): more syntax highlighting #685

tunaflsh opened this issue Feb 18, 2025 · 2 comments

Comments

@tunaflsh
Copy link

Only the highlight group CocSemTypeFunction is recognized. Nothing else is highlighted.

Image

My current :CocConfig, "coc-settings.json":

{
  "[autohotkey]": {
    "semanticTokens.enable": true
  }
  "languageserver": {
    "lsp-ahk2": {
      "module": "$XDG_CONFIG_HOME/nvim/lsp/vscode-autohotkey2-lsp/server/dist/server.js",
      "filetypes": ["autohotkey"],
      "args": ["--node-ipc"],
      "initializationOptions": {
        "locale": "en-us", // or "zh-cn"
        "AutoLibInclude": "Disabled", // or "Local" or "User and Standard" or "All"
        "CommentTags": "^;;\\s*(?<tag>.+)",
        "CompleteFunctionParens": false,
        "Diagnostics": {
          "ClassStaticMemberCheck": true,
          "ParamsCheck": true
        },
        "ActionWhenV1IsDetected": "Continue",
        "FormatOptions": {
          "array_style": "none",           // or "collapse" or "expand"
          "break_chained_methods": false,
          "ignore_comment": false,
          "indent_string": "\t",
          "max_preserve_newlines": 2,
          "brace_style": "One True Brace", // or "Allman" or "One True Brace Variant"
          "object_style": "none",          // or "collapse" or "expand"
          "preserve_newlines": true,
          "space_after_double_colon": true,
          "space_before_conditional": true,
          "space_in_empty_paren": false,
          "space_in_other": true,
          "space_in_paren": false,
          "wrap_line_length": 0
        },
        "InterpreterPath": "C:/Program Files/AutoHotkey/v2/AutoHotkey.exe",
        "WorkingDirs": [],
        "SymbolFoldingFromOpenBrace": false
      }
    }
  },
}
@tunaflsh
Copy link
Author

I also have set rtp where I installed the extension.

set runtimepath^='$XDG_CONFIG_HOME/nvim/lsp/vscode-autohotkey2-lsp'

@tunaflsh
Copy link
Author

I found you mentioned in this thread that Strings etc. are not supported yet. So I'm changing this as a feature request.

@tunaflsh tunaflsh changed the title neovim: syntax highlighting not working with coc.nvim feature request (neovim): more syntax highlighting Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant