fix: backdrop autocmds

remotes/origin/HEAD
Chris Grieser 2024-06-20 21:15:27 +02:00
parent 4b64077783
commit 07ea6edb98
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ local function fileOp(op)
-- backdrop -- backdrop
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
once = true,
group = vim.api.nvim_create_augroup("InputGenghisBackdrop", {}), group = vim.api.nvim_create_augroup("InputGenghisBackdrop", {}),
pattern = "DressingInput", pattern = "DressingInput",
callback = function(ctx) backdrop.new(ctx.buf) end, callback = function(ctx) backdrop.new(ctx.buf) end,
@ -159,6 +160,7 @@ function M.moveToFolderInCwd()
if cwd ~= parentOfCurFile then table.insert(foldersInCwd, cwd) end if cwd ~= parentOfCurFile then table.insert(foldersInCwd, cwd) end
local autocmd = vim.api.nvim_create_autocmd("FileType", { local autocmd = vim.api.nvim_create_autocmd("FileType", {
once = true,
group = vim.api.nvim_create_augroup("SelectorGenghisBackdrop", {}), group = vim.api.nvim_create_augroup("SelectorGenghisBackdrop", {}),
pattern = { "DressingSelect", "TelescopePrompt" }, pattern = { "DressingSelect", "TelescopePrompt" },
callback = function(ctx) backdrop.new(ctx.buf) end, callback = function(ctx) backdrop.new(ctx.buf) end,