nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

First children directories and files are not aligned.

Open cevhyruz opened this issue 2 years ago • 4 comments

first_child_dir1 and first_child_file_1 should be aligned

Screenshot from 2022-07-18 21-38-31

Here is my setup:

nvim_tree.setup {
  actions = {
    open_file = {
      quit_on_open = true,
      window_picker = {
        enable = true
      }
    }
  },
  renderer = {
    indent_markers = {
      enable = true,
        icons = {
              edge = "│ ",
              item = "├─",
            corner = "╰─",
              none = " ",
          },
    },
    group_empty = false,
    add_trailing = false,
    root_folder_modifier = ":t",
    highlight_git = true,
    icons = {
      show = {
        git = true,
        folder = true,
        file = true,
        folder_arrow = true,
      },
      glyphs = {
        default = "",
        symlink = "",
        git = {
          unstaged = "",
          staged = "S",
          unmerged = "",
          renamed = "➜",
          deleted = "",
          untracked = "U",
          ignored = "◌",
        },
      },
      git_placement = "after"
    }
  },

  hijack_netrw = false,
  open_on_setup = false,
  ignore_ft_on_setup = {
    "startify",
    "dashboard",
    "alpha",
  },
  open_on_tab = false,
  hijack_cursor = false,
  update_cwd = false,
  diagnostics = {
    enable = true,
    icons = {
      hint = "",
      info = "",
      warning = "",
      error = "",
    },
  },
  update_focused_file = {
    ignore_list = {},
  },
  system_open = {
    cmd = nil,
    args = {},
  },
  filters = {
    dotfiles = false,
    custom = {},
  },
  git = {
    enable = true,
    ignore = false,
    timeout = 500,
  },
  view = {
    width = 35,
    height = 30,
    hide_root_folder = false,
    side = "left",
    preserve_window_proportions = true,
    mappings = {
      custom_only = false,
      list = {
        { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" },
        { key = "h", cb = tree_cb "close_node" },
        { key = "v", cb = tree_cb "vsplit" },
        { key = '<Space>', action = 'edit' }
      },
    },
    number = false,
    relativenumber = false,
  },
  trash = {
    cmd = "trash",
    require_confirm = true,
  }
}

cevhyruz avatar Jul 18 '22 13:07 cevhyruz

nvm. using single-character indent marker icons did the trick.

cevhyruz avatar Jul 18 '22 13:07 cevhyruz

It could be nice to support two-character indent markers though.

cevhyruz avatar Jul 18 '22 13:07 cevhyruz

actually It's still the same.

cevhyruz avatar Jul 18 '22 13:07 cevhyruz

i thought i fixed that already. I'll see for a patch in the next days

kyazdani42 avatar Jul 18 '22 17:07 kyazdani42

Should be resolved via #1505

Please open an issue if further problems are experienced.

alex-courtis avatar Oct 15 '22 02:10 alex-courtis