mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
linting fixes
This commit is contained in:
parent
6ae28327e0
commit
b2892fa855
5 changed files with 24 additions and 7 deletions
|
|
@ -1,5 +1,7 @@
|
|||
-- Helper functions for dealing with buffers
|
||||
local M = {}
|
||||
|
||||
-- Close all but current buffer
|
||||
function M.CloseOthers()
|
||||
for _, i in ipairs(vim.api.nvim_list_bufs()) do
|
||||
if i ~= vim.api.nvim_get_current_buf() then
|
||||
|
|
@ -8,6 +10,7 @@ function M.CloseOthers()
|
|||
end
|
||||
end
|
||||
|
||||
-- Close all open buffers
|
||||
function M.CloseAll()
|
||||
for _, i in ipairs(vim.api.nvim_list_bufs()) do
|
||||
vim.api.nvim_buf_delete(i, {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue