chaozwn / tree-sitter-goctl

tree-sitter for goctl
MIT License
3 stars 0 forks source link

go-zero .api file highlight not work #1

Open CaiJinKen opened 2 months ago

CaiJinKen commented 2 months ago

nvim-treesitter: require("nvim-treesitter.health").check()

  1. env:
:checkhealth nvim-treesitter

Installation ~

OS Info: { machine = "x86_64", release = "23.5.0", sysname = "Darwin", version = "Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64" } ~

Parser/Features H L F I J

  1. open go-zero project and open .api file. Want: highlight works Result: not woks
  2. open .lua .c .go highlight work well.
chaozwn commented 2 months ago

nvim-treesitter: require("nvim-treesitter.health").check()

  1. env:
:checkhealth nvim-treesitter

Installation ~

  • OK tree-sitter found 0.22.6 (parser generator, only needed for :TSInstallFromGrammar)
  • OK node found v20.15.1 (only needed for :TSInstallFromGrammar)
  • OK git executable found.
  • OK cc executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: Apple clang version 15.0.0 (clang-1500.3.9.4)
  • OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

OS Info: { machine = "x86_64", release = "23.5.0", sysname = "Darwin", version = "Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64" } ~

Parser/Features H L F I J

  • c ✓ ✓ ✓ ✓ ✓
  • go ✓ ✓ ✓ ✓ ✓
  • goctl ✓ . ✓ ✓ ✓
  • lua ✓ ✓ ✓ ✓ ✓
  • markdown ✓ . ✓ ✓ ✓
  • markdown_inline ✓ . . . ✓
  • query ✓ ✓ ✓ ✓ ✓
  • vim ✓ ✓ ✓ . ✓
  • vimdoc ✓ . . . ✓

Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~

  1. open go-zero project and open .api file. Want: highlight works Result: not woks
  2. open .lua .c .go highlight work well.
image
CaiJinKen commented 1 month ago

I dont have the file named polish.lua and i dont understand it use for what either.

CaiJinKen commented 1 month ago

Oh,,,, README.md has been updated. polish.lua set filetype i guess.