Moved neogit autocmds to nvim-tree
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -1,33 +1,9 @@
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
local augroup = vim.api.nvim_create_augroup
|
||||
-- Groups
|
||||
-- local neogitCmds = augroup("MyCustomNeogitEvents", { clear = true })
|
||||
local nvimhelp = augroup("help_window_right", {})
|
||||
local mkdirrun = augroup("MkdirRun", { clear = true })
|
||||
|
||||
-- Neogit nvim tree refresh
|
||||
-- autocmd("User", {
|
||||
-- pattern = "NeogitPushComplete",
|
||||
-- group = neogitCmds,
|
||||
-- callback = function()
|
||||
-- require("nvim-tree.api").tree.reload()
|
||||
-- end,
|
||||
-- })
|
||||
-- autocmd("User", {
|
||||
-- pattern = "NeogitPullComplete",
|
||||
-- group = neogitCmds,
|
||||
-- callback = function()
|
||||
-- require("nvim-tree.api").tree.reload()
|
||||
-- end,
|
||||
-- })
|
||||
-- autocmd("User", {
|
||||
-- pattern = "NeogitFetchComplete",
|
||||
-- group = neogitCmds,
|
||||
-- callback = function()
|
||||
-- require("nvim-tree.api").tree.reload()
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
autocmd("BufWinEnter", {
|
||||
group = nvimhelp,
|
||||
pattern = { "*.txt" },
|
||||
|
||||
Reference in New Issue
Block a user