mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
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:
parent
59126caa31
commit
ac376bb0d4
1 changed files with 0 additions and 1 deletions
|
|
@ -52,7 +52,6 @@ return {
|
||||||
event = "LazyFile",
|
event = "LazyFile",
|
||||||
config = function(_, _)
|
config = function(_, _)
|
||||||
require("conjure.main").main()
|
require("conjure.main").main()
|
||||||
require("conjure.mapping")["on-filetype"]()
|
|
||||||
end,
|
end,
|
||||||
init = function()
|
init = function()
|
||||||
-- print color codes if baleia.nvim is available
|
-- print color codes if baleia.nvim is available
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue