rescript-lang / rescript-lang/vim-rescript
Create interface files
未关闭
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 164
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
As this plugin is for neovim AND vim, I don't know, how to manage it.
So maybe just for everyones interest, I created a function (for neovim) to automatically create resi files:
function createInterfaceFile()
local path = vim.api.nvim_buf_get_name(0)
if vim.fn.filereadable(path .. "i") == 1 then
print("Interface file already exists")
else
-- print("Create interface file")
vim.lsp.buf_request(
0,
"textDocument/createInterface",
{ uri = "file://" .. path },
function ()
print("Interface file created")
end
)
end
end
vim.cmd("command RescriptCreateInterfaceFile lua createInterfaceFile()")
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提议的 createInterfaceFile 函数及其 RescriptCreateInterfaceFile 命令开始,然后确定接口文件的创建应如何在 Neovim 和 Vim 中工作。当受支持编辑器的行为以及对现有接口文件的处理都得到明确的定义和实现时,即可视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- neovim, vim
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100