rescript-lang / rescript-lang/vim-rescript

Nvim Treesitter support

未关闭
#49 7 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
164
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

Not sure if I should post it here, but the tree-sitter build-in neovim doesn't support rescript. It's a great improvement for color highlight and other plugins features ( I think about blankline or telescope preview for example).
With the recent release of nvim 0.5, it's now a must have.

If we look at the elm way, they have a dedicated repo: https://github.com/elm-tooling/tree-sitter-elm for the "regular" tree-sitter as a common based, then we can have the slightly different version targeting nvim as explain here: https://github.com/nvim-treesitter/nvim-treesitter/issues/529

Posting it here, as vs code took the opposite way to deprecied tree-sitter so it primaly focus neovim. Also, the current highlight syntax have some issue, it can fixed it at least for neovim, in what it seems to be an easier way than through LSP.

I will probably not have time to take care of it, but I post it here for the record anymway.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查 vim-rescript 仓库中的当前高亮语法,以及所引用的 Elm tree-sitter 和 nvim-treesitter 方法。完成的标准是记录或实现一条可行的 Neovim Tree-sitter 支持路径,并解决报告的高亮限制,同时根据所请求的 Neovim 功能检查结果。

由索引模型根据 Issue 内容生成。

评估

技术栈
neovim, vim
领域
tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
28/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。