vim-rescript icon indicating copy to clipboard operation
vim-rescript copied to clipboard

ctags / tags integration for listing the outline

Open ryyppy opened this issue 4 years ago • 2 comments

A common VIM workflow is to create tags file (often via ctags). There is no ReScript / ctags language extension, but maybe this is not even needed.

In a first version it would be perfectly fine to comply to the ctags file format and use the editor-support binary to retrieve the data for our modules.

When rescript-vscode supports outlines, it would also be possible to use that functionality to list outlines via coc-vim of course. I want to have a vanilla vim version first though.

Also check out how to use tags / how to create tag files in vim.

ryyppy avatar Dec 08 '20 15:12 ryyppy

still watch this feature

thomaszdxsn avatar Feb 24 '22 05:02 thomaszdxsn

I have been using ReScript LSP + https://github.com/simrat39/symbols-outline.nvim to get an outline view.

However, the generated view is flat. Heirarchy is missing from the outline.

image

I tried another plugin https://github.com/stevearc/aerial.nvim with the same result.

VS Code, however, produces a nice heirarchical outline.

Any idea on how this could be fixed?

jbhoot avatar Nov 17 '22 06:11 jbhoot