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

v3 Zig does not show context #728

Open
chrboesch opened this issue Oct 14, 2023 · 2 comments · May be fixed by #729
Open

v3 Zig does not show context #728

chrboesch opened this issue Oct 14, 2023 · 2 comments · May be fixed by #729
Labels
bug Something isn't working

Comments

@chrboesch
Copy link
Contributor

Problem

Since v3, the "show context" feature no longer works when scrolling through Zig's source code:

Selection_019

Steps to reproduce

require("ibl").setup {
    indent = {
		char = "",
	},
	scope = {
		enabled = true,
		show_start = true,
		show_end = false,
		exclude = {
			language = {
				"help"
			}
		},
	},
}

Expected behavior

Same like v2.

Neovim version (nvim -v)

NVIM v0.9.4 Build type: Release LuaJIT 2.1.0-beta3

@chrboesch chrboesch added the bug Something isn't working label Oct 14, 2023
@chrboesch chrboesch linked a pull request Oct 14, 2023 that will close this issue
@lukas-reineke
Copy link
Owner

Scope is based on https://github.com/nvim-treesitter/nvim-treesitter scope. And there is no zig support.

But it would be relatively easy to add support, all that needs to happen is to add every treesitter node type that is a scope to https://github.com/lukas-reineke/indent-blankline.nvim/blob/master/lua/ibl/scope_languages.lua

But I don't know zig. You can make a PR if you want.

@lukas-reineke
Copy link
Owner

Oh i just saw you made a PR 😅

I'll merge it tomorrow, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants