Open ChausseBenjamin opened 1 year ago
I had the same. the event "User" should be the first argument in the autocommand, and the rest of the array the second. In the default code the event is defined in the array, which causes the error. This code worked for me:
{ "lmburns/lf.nvim", config = function() -- This feature will not work if the plugin is lazy-loaded vim.g.lf_netrw = 1
require("lf").setup({
escape_quit = false,
border = "rounded",
})
vim.api.nvim_create_autocmd(
"User",{
pattern = "LfTermEnter",
callback = function(a)
vim.api.nvim_buf_set_keymap(a.buf, "t", "q", "q", {nowait = true})
end,
})
end,
requires = {"toggleterm.nvim"}
}
I tried porting your configuration to the lazy.nvim package manager. This is what I got:
The one bit that seems to be having issues is the autocmd. Without it, nvim launches fine (but lf doesn't seem to work). With it, nvim gives me the following error at launch: