* fix(#2109): floating help window * fix(#2109): floating help window * fix(#2109): floating help window * fix(#2109): floating help window * fix(#2109): floating help window * fix(#2109): floating help window * fix(#2109): floating help window * fix(#2109): floating help window * help float no border Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com> * Update lua/nvim-tree/help.lua Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com> * Update lua/nvim-tree/help.lua Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com> * Update lua/nvim-tree/help.lua Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com> * Update lua/nvim-tree/help.lua Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com> * fix(#2109): floating help window * fix(#2109): floating help window --------- Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b601b5aa25
commit
0a144ba50a
@@ -24,11 +24,6 @@ function M.get_node_at_cursor()
|
||||
|
||||
local cursor = vim.api.nvim_win_get_cursor(view.get_winnr())
|
||||
local line = cursor[1]
|
||||
if view.is_help_ui() then
|
||||
local help_lines = require("nvim-tree.renderer.help").compute_lines()
|
||||
local help_text = utils.get_nodes_by_line(help_lines, 1)[line]
|
||||
return { name = help_text }
|
||||
end
|
||||
|
||||
if line == 1 and view.is_root_folder_visible(core.get_cwd()) then
|
||||
return { name = ".." }
|
||||
|
||||
Reference in New Issue
Block a user