mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
fix: close currrent buffer
This commit is contained in:
parent
49478d3a89
commit
4f3feb5c38
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ end
|
|||
function _CLOSE_BUFFER()
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
-- delete current buffer
|
||||
require("bufdelete").bufdelete(buf, true)
|
||||
require("user.utils.bufferline").bufremove(buf)
|
||||
end
|
||||
|
||||
function _OPEN_ALACRITTY()
|
||||
|
|
|
@ -74,7 +74,7 @@ end
|
|||
function M._CLOSE_BUFFER()
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
-- delete current buffer
|
||||
require("bufdelete").bufdelete(buf, true)
|
||||
require("user.utils.bufferline").bufremove(buf)
|
||||
end
|
||||
|
||||
-- function for close all bufferline
|
||||
|
@ -83,7 +83,7 @@ function M._CLOSE_ALL_BUFFER()
|
|||
local bufs = vim.api.nvim_list_bufs()
|
||||
-- loop through all buffer
|
||||
for _, buf in pairs(bufs) do
|
||||
require("user.utils").bufdelete(buf)
|
||||
require("user.utils.bufferline").bufremove(buf)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue