fix(clojure): remove redundant on-filetype() call that leaks keymaps

The Conjure spec calls `require("conjure.mapping")["on-filetype"]()`
unconditionally in its `config` function. Because the plugin loads on
`event = "LazyFile"` (any file open), this sets Conjure's buffer-local
keymaps on whatever buffer triggered the load, regardless of filetype.

This call is redundant. `require("conjure.main").main()` internally
calls `mapping.init(filetypes)`, which registers a FileType autocmd
scoped to supported filetypes and checks the current buffer's filetype
before calling `on-filetype()`. The extra call bypasses that guard.

Fixes #7064
This commit is contained in:
Ira Chan 2026-03-21 05:05:41 +08:00
parent 59126caa31
commit ac376bb0d4
No known key found for this signature in database
GPG key ID: 5E9D7B9E55FA3B57

View file

@ -52,7 +52,6 @@ return {
event = "LazyFile",
config = function(_, _)
require("conjure.main").main()
require("conjure.mapping")["on-filetype"]()
end,
init = function()
-- print color codes if baleia.nvim is available