nvim-neo-tree / neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.
MIT License
3.48k stars 208 forks source link

Help, how do I change positions of these things? I am completely lost #890

Closed AnezeR closed 1 year ago

AnezeR commented 1 year ago
image
miversen33 commented 1 year ago

Take a peek at :h neo-tree-source-selector

Also the the defaults to see how it is currently configured.

AnezeR commented 1 year ago
      source_selector = {
        winbar = true,
        content_layout = "center",
        tab_labels = {
          filesystem = get_icon "FolderClosed" .. " File",
          buffers = get_icon "DefaultFile" .. " Bufs",
          git_status = get_icon "Git" .. " Git",
          diagnostics = get_icon "Diagnostic" .. " Diagnostic",
        },
      },

This is the code in my neo-tree.lua file, and the tabs are in the correct order. They, however, seem to be shuffling seemingly randomly sometimes, and I have no idea why, but I reckon this is not the defaults problem. I can try and send the whole file, but I'm pretty much sure it is the default config file created by astronvim

miversen33 commented 1 year ago

Are you pinned to a specific commit? source_selector.tab_labels was deprecated in commit 92624d0 so you should be seeing a warning telling you to stop using tab_labels.

Also note, the default link I provided you above (which specifically is linked to the source selector bit) does not include tab_labels.

Please revisit the above documentation link. Consider updating your neo-tree version if you are pinned to a commit that is older than whatever the head of the v2.x branch is and see if your issue goes away.

miversen33 commented 1 year ago

Unceremoniously closing this. If you still have this issue @AnezeR , please comment and I will reopen it.