Detach affected buffer only. (#144)

This commit is contained in:
soufiane nassih 2024-01-25 10:17:01 +01:00 committed by GitHub
parent 8515e48a27
commit 8619a63750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -594,8 +594,8 @@ M.attach = function(bufnr, lang)
end
end
M.detach = function()
local bufnr = vim.api.nvim_get_current_buf()
M.detach = function(bufnr)
local bufnr = tonumber(bufnr) or vim.api.nvim_get_current_buf()
buffer_tag[bufnr] = nil
end