diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-12-07 14:24:21 -0500 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-12-07 14:24:21 -0500 |
| commit | d1c15dc2657c4bdec50f9cc7ad76c4dc182e8cc9 (patch) | |
| tree | f560a0ed67b7c83bd876cf4e3b2eb057088def93 /lua/telescope | |
| parent | 655295ef64ebb0b769de45146dae65b89212a8f0 (diff) | |
feat: Force delete buffers
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/utils.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 1e091e8..81f4408 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -146,7 +146,7 @@ function utils.buf_delete(bufnr) if start_report < 2 then vim.o.report = 2 end if vim.api.nvim_buf_is_valid(bufnr) and vim.api.nvim_buf_is_loaded(bufnr) then - vim.cmd(string.format("bdelete! %s", bufnr)) + vim.api.nvim_buf_delete(bufnr, { force = true }) end if start_report < 2 then vim.o.report = start_report end |
