mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +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()
|
function _CLOSE_BUFFER()
|
||||||
local buf = vim.api.nvim_get_current_buf()
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
-- delete current buffer
|
-- delete current buffer
|
||||||
require("bufdelete").bufdelete(buf, true)
|
require("user.utils.bufferline").bufremove(buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
function _OPEN_ALACRITTY()
|
function _OPEN_ALACRITTY()
|
||||||
|
|
|
@ -74,7 +74,7 @@ end
|
||||||
function M._CLOSE_BUFFER()
|
function M._CLOSE_BUFFER()
|
||||||
local buf = vim.api.nvim_get_current_buf()
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
-- delete current buffer
|
-- delete current buffer
|
||||||
require("bufdelete").bufdelete(buf, true)
|
require("user.utils.bufferline").bufremove(buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- function for close all bufferline
|
-- function for close all bufferline
|
||||||
|
@ -83,7 +83,7 @@ function M._CLOSE_ALL_BUFFER()
|
||||||
local bufs = vim.api.nvim_list_bufs()
|
local bufs = vim.api.nvim_list_bufs()
|
||||||
-- loop through all buffer
|
-- loop through all buffer
|
||||||
for _, buf in pairs(bufs) do
|
for _, buf in pairs(bufs) do
|
||||||
require("user.utils").bufdelete(buf)
|
require("user.utils.bufferline").bufremove(buf)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue