Skip to content

Line numbers in Neo-Tree #843

Answered by miversen33
Bogfoot asked this question in Q&A
Apr 4, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

After a bit of digging, I figured out where buffer/window options are being set.
neo-tree.ui.renderer.lua:L831-L834

    win_options = {
      colorcolumn = "",
      signcolumn = "no",
    },

These options are passed to Nui.nvim where they are applied to the buffer that is created by Nui via Neo-tree.

As you see, there is no (current) way to influence the window options that are generated.

The current Neo-tree state is provided to the function renderer.create_window function however, and above in that same function we actually get some config options

  local default_position = utils.resolve_config_option(state, "window.position", "left")
  local relative = utils.resolve_config_option(state, 

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Bogfoot
Comment options

@miversen33
Comment options

@Bogfoot
Comment options

Answer selected by Bogfoot
Comment options

You must be logged in to vote
2 replies
@ryardley
Comment options

@Bogfoot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants