mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2024-12-30 15:19:14 -06:00
Detach affected buffer only. (#144)
This commit is contained in:
parent
8515e48a27
commit
8619a63750
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user