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

feat(inlay): show virtual variable text #211

Conversation

iamxiaojianzheng
Copy link
Contributor

about this #209

@gorillamoe gorillamoe added the enhancement New feature or request label Sep 3, 2024
@gorillamoe gorillamoe self-assigned this Sep 3, 2024
@gorillamoe
Copy link
Member

This assumes people using TS. I would like to have this optional. I can look into some refactoring for that.


local variables = vim.tbl_extend(
"force",
TS.get_document_variables(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Treesitter is still optional for Kulala users.

vim.api.nvim_create_augroup(VV_GROUP_NAME, { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "TextChanged", "TextChangedI" }, {
group = VV_GROUP_NAME,
pattern = "*.http",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 🤔 we might also include *.rest here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants