diff --git a/lua/neorg/modules/core/keybinds/module.lua b/lua/neorg/modules/core/keybinds/module.lua index 89cb285f0..d05a7de4b 100644 --- a/lua/neorg/modules/core/keybinds/module.lua +++ b/lua/neorg/modules/core/keybinds/module.lua @@ -46,8 +46,8 @@ files. There are two ways to combat this: ``` - Create an autocommand using `vim.api.nvim_create_autocmd`: ```lua - vim.api.nvim_create_autocmd("BufEnter", { - pattern = "*.norg", + vim.api.nvim_create_autocmd("Filetype", { + pattern = "norg", callback = function() vim.keymap.set("n", "my-key-here", "(neorg.pivot.list.toggle)", { buffer = true }) end,