minor updates
This commit is contained in:
parent
e3790a4f3f
commit
628baf3eea
32 changed files with 655 additions and 123 deletions
|
|
@ -1,15 +0,0 @@
|
|||
local M = { }
|
||||
|
||||
function M.close_buffer(force)
|
||||
if #vim.fn.filter(vim.fn.range(1, vim.fn.bufnr '$'), 'buflisted(v:val)') <= 1 then
|
||||
vim.api.nvim_command("qa" .. (force and "!" or ""))
|
||||
else
|
||||
local tree = require("nvim-tree.api").tree
|
||||
|
||||
tree.toggle({ focus = false })
|
||||
vim.api.nvim_command("bd" .. (force and "!" or ""))
|
||||
tree.toggle({ focus = false })
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
local M = { }
|
||||
|
||||
function M.lazy_init()
|
||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system {
|
||||
'git',
|
||||
'clone',
|
||||
'--filter=blob:none',
|
||||
'https://github.com/folke/lazy.nvim.git',
|
||||
'--branch=stable',
|
||||
lazypath,
|
||||
}
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue