Neovim: Auto-refresh neotree when closing lazygit
This commit is contained in:
@ -123,6 +123,19 @@ in {
|
|||||||
# extraPython3Packages = p: [];
|
# extraPython3Packages = p: [];
|
||||||
|
|
||||||
autoCmd = [
|
autoCmd = [
|
||||||
|
{
|
||||||
|
desc = "Refresh neotree when closing lazygit";
|
||||||
|
event = ["BufLeave"];
|
||||||
|
pattern = ["*lazygit*"];
|
||||||
|
callback.__raw = ''
|
||||||
|
function()
|
||||||
|
require("neo-tree.sources.filesystem.commands").refresh(
|
||||||
|
require("neo-tree.sources.manager").get_state("filesystem")
|
||||||
|
)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
desc = "Lint the file if autolint is enabled";
|
desc = "Lint the file if autolint is enabled";
|
||||||
event = ["BufWritePost"];
|
event = ["BufWritePost"];
|
||||||
|
|||||||
Reference in New Issue
Block a user