fix(plugin): neotree conflicting with lualine

This commit is contained in:
2026-10-10 09:12:21 +02:00
parent cfaa8988ed
commit 747038e7d6
5 changed files with 45 additions and 12 deletions
+22
View File
@@ -0,0 +1,22 @@
{ ... }:
{
plugins.neo-tree = {
enable = true;
settings = {
close_if_last_window = true;
event_handlers = [
{
event = "neo_tree_window_after_close";
handler.__raw = ''
function(args)
local loc = require("neo-tree.ui.windows").get_location(args.position)
if loc and vim.api.nvim_win_is_valid(loc.winid) then
loc.winid = 0
end
end
'';
}
];
};
};
}