mirror of
https://github.com/gosticks/bookmarks.nvim.git
synced 2025-10-16 11:55:38 +00:00
fix: only attach to loaded buffer (#1)
Co-authored-by: tomasky <blueswooz@outlook.com>
This commit is contained in:
parent
5985bf4949
commit
5fe06a9190
@ -39,6 +39,7 @@ M.attach = void(function(bufnr)
|
||||
if config.config.on_attach then
|
||||
config.config.on_attach(bufnr)
|
||||
end
|
||||
if not api.nvim_buf_is_loaded(bufnr) then return end
|
||||
api.nvim_buf_attach(bufnr, false, {
|
||||
on_detach = on_detach,
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user