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

Lazy Configuration (example) #742

Closed
kobzar opened this issue Oct 20, 2023 · 7 comments
Closed

Lazy Configuration (example) #742

kobzar opened this issue Oct 20, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@kobzar
Copy link

kobzar commented Oct 20, 2023

Problem

Migration is good news but i reaaly cant found any info how to normally setup some moments.
So, maybe someone can show his configuration?

The main question for me at this moment is how to make that line for active block was highlited?
Fit this moment all lines is the same color

return {
	"lukas-reineke/indent-blankline.nvim",
  lazy = false,
	opts = {
  indent = {
      char = "",
    },
    scope = {
      enabled = false,
    },
    exclude = {
      filetypes = { "help", "alpha", "dashboard", "Trouble", "lazy", "neo-tree" },
    },
    whitespace = {
      remove_blankline_trail = true,
    },
  },

	main = "ibl",
}

Thanks

Expected behavior

.

@kobzar kobzar added the enhancement New feature or request label Oct 20, 2023
@lukas-reineke
Copy link
Owner

The main question for me at this moment is how to make that line for active block was highlited?

You turned this off with

scope = {
  enabled = false,
},

Just remove that from your config.

@kobzar
Copy link
Author

kobzar commented Oct 20, 2023

The same results
image

@lukas-reineke
Copy link
Owner

A table in lua is not scope. In that screenshot you will not get scope highlighting.

@Danielkonge
Copy link
Contributor

If I understand what you want correctly, it is what will be called current_indent, but you need to wait until #743 is merged.

@kobzar
Copy link
Author

kobzar commented Oct 20, 2023

.

@wookayin
Copy link

wookayin commented Nov 2, 2023

How do I add lua table into scope manually? EDIT: help :ibl.config.scope

    scope = {
      char = '▏',
      include = {
        node_type = {
          lua = { 'field' }
        },
      },
    },

But this requires manually writing treesitter node types for every filetypes...

More generally, I need the behavior similar to v2 that highlights the current indentation; it's #743, right?

@lukas-reineke
Copy link
Owner

Yes, current indentation highlighting is not ready yet.
I'll close this issue

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

No branches or pull requests

4 participants