You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the file name is not in ASCII (Cyrillic, in my case) and it does not fit in the tree buffer, it gets cut very roughly and often with artifacts. See screenshots with different width (i keep a nvim-tree version on the left for comparison).
File name format (spaces, etc) does not seem to affect the issue.
The only component config i use is enable_character_fade, the issue is present with both true and false.
Screenshots, Traceback
Steps to Reproduce
Use neo-tree
Make a long file name using non-ascii characters
Make neotree buffer (sidebar) smaller than the file name length
Expected Behavior
Names should be cut right by the edge of the buffer, without artifacts or waste of space.
Your Configuration
return {
"nvim-neo-tree/neo-tree.nvim",
branch="v3.x",
dependencies= {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended"MunifTanjim/nui.nvim",
"3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
config=function()
localevents=require("neo-tree.events")
localfunctionon_move(data)
Snacks.rename.on_rename_file(data.source, data.destination)
endrequire"neo-tree".setup({
event_handlers= {
{ event=events.FILE_MOVED, handler=on_move },
{ event=events.FILE_RENAMED, handler=on_move },
},
git_status_async=false,
close_if_last_window=true,
filesystem= {
follow_current_file= {
enabled=true
},
filtered_items= {
visible=false, -- when true, they will just be displayed differently than normal itemshide_dotfiles=false,
hide_gitignored=false,
-- hide_hidden = true, -- only works on Windows for hidden files/directorieshide_by_name= {
"node_modules",
".git",
".idea",
},
hide_by_pattern= { -- uses glob style patterns--"*.meta",--"*/src/*/tsconfig.json",
},
always_show= { -- remains visible even if other settings would normally hide it--".gitignored",
},
never_show= { -- remains hidden even if visible is toggled to true, this overrides always_show".DS_Store",
-- "thumbs.db"
},
never_show_by_pattern= { -- uses glob style patterns--".null-ls_*",
},
},
use_libuv_file_watcher=true,
},
default_component_configs= {
container= {
enable_character_fade=false,
},
},
window= {
auto_expand_wdith=false,
mappings= {
["<bs>"] ="",
["<C-u>"] ="navigate_up",
["h"] =function(state)
localnode=state.tree:get_node()
ifnode.type=='directory' andnode:is_expanded() thenrequire'neo-tree.sources.filesystem'.toggle_directory(state, node)
elserequire'neo-tree.ui.renderer'.focus_node(state, node:get_parent_id())
endend,
["l"] =function(state)
localnode=state.tree:get_node()
ifnode.type=='directory' thenifnotnode:is_expanded() thenrequire'neo-tree.sources.filesystem'.toggle_directory(state, node)
elseifnode:has_children() thenrequire'neo-tree.ui.renderer'.focus_node(state, node:get_child_ids()[1])
endelsestate.commands['open'](state)
vim.cmd('Neotree reveal')
endend,
['<tab>'] =function(state)
localnode=state.tree:get_node()
ifrequire("neo-tree.utils").is_expandable(node) thenstate.commands["toggle_node"](state)
elsestate.commands['open'](state)
vim.cmd('Neotree reveal')
endend,
}
}
})
end
}
The text was updated successfully, but these errors were encountered:
Emptyfruit
changed the title
BUG: Non-ascci file names being cut randomly if not fit
BUG: Non-ascci file names being cut randomly if don't fit
Dec 23, 2024
Did you check docs and existing issues?
Neovim Version (nvim -v)
NVIM v0.10.3
Operating System / Version
MacOS 14.6.1
Describe the Bug
If the file name is not in ASCII (Cyrillic, in my case) and it does not fit in the tree buffer, it gets cut very roughly and often with artifacts. See screenshots with different width (i keep a nvim-tree version on the left for comparison).
enable_character_fade
, the issue is present with bothtrue
andfalse
.Screenshots, Traceback
Steps to Reproduce
Expected Behavior
Names should be cut right by the edge of the buffer, without artifacts or waste of space.
Your Configuration
The text was updated successfully, but these errors were encountered: