Removed autocmds for nvim tree
This commit is contained in:
@@ -1,32 +1,32 @@
|
|||||||
local autocmd = vim.api.nvim_create_autocmd
|
local autocmd = vim.api.nvim_create_autocmd
|
||||||
local augroup = vim.api.nvim_create_augroup
|
local augroup = vim.api.nvim_create_augroup
|
||||||
-- Groups
|
-- Groups
|
||||||
local neogitCmds = augroup("MyCustomNeogitEvents", { clear = true })
|
-- local neogitCmds = augroup("MyCustomNeogitEvents", { clear = true })
|
||||||
local nvimhelp = augroup("help_window_right", {})
|
local nvimhelp = augroup("help_window_right", {})
|
||||||
local mkdirrun = augroup("MkdirRun", { clear = true })
|
local mkdirrun = augroup("MkdirRun", { clear = true })
|
||||||
|
|
||||||
-- Neogit nvim tree refresh
|
-- Neogit nvim tree refresh
|
||||||
autocmd("User", {
|
-- autocmd("User", {
|
||||||
pattern = "NeogitPushComplete",
|
-- pattern = "NeogitPushComplete",
|
||||||
group = neogitCmds,
|
-- group = neogitCmds,
|
||||||
callback = function()
|
-- callback = function()
|
||||||
require("nvim-tree.api").tree.reload()
|
-- require("nvim-tree.api").tree.reload()
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
autocmd("User", {
|
-- autocmd("User", {
|
||||||
pattern = "NeogitPullComplete",
|
-- pattern = "NeogitPullComplete",
|
||||||
group = neogitCmds,
|
-- group = neogitCmds,
|
||||||
callback = function()
|
-- callback = function()
|
||||||
require("nvim-tree.api").tree.reload()
|
-- require("nvim-tree.api").tree.reload()
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
autocmd("User", {
|
-- autocmd("User", {
|
||||||
pattern = "NeogitFetchComplete",
|
-- pattern = "NeogitFetchComplete",
|
||||||
group = neogitCmds,
|
-- group = neogitCmds,
|
||||||
callback = function()
|
-- callback = function()
|
||||||
require("nvim-tree.api").tree.reload()
|
-- require("nvim-tree.api").tree.reload()
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
|
|
||||||
autocmd("BufWinEnter", {
|
autocmd("BufWinEnter", {
|
||||||
group = nvimhelp,
|
group = nvimhelp,
|
||||||
|
|||||||
Reference in New Issue
Block a user