update astronvim to v3
This commit is contained in:
parent
5ff843d62d
commit
72fe433bc2
19 changed files with 432 additions and 413 deletions
|
|
@ -2,14 +2,14 @@ return function()
|
|||
local function alpha_on_bye(cmd)
|
||||
local bufs = vim.fn.getbufinfo({ buflisted = true })
|
||||
vim.cmd(cmd)
|
||||
if require("core.utils").is_available("alpha-nvim") and not bufs[2] then
|
||||
if require("astronvim.utils").is_available("alpha-nvim") and not bufs[2] then
|
||||
require("alpha").start(true)
|
||||
end
|
||||
end
|
||||
|
||||
vim.keymap.del("n", "<leader>C")
|
||||
|
||||
if require("core.utils").is_available("bufdelete.nvim") then
|
||||
if require("astronvim.utils").is_available("bufdelete.nvim") then
|
||||
vim.keymap.set("n", "<leader>C", function()
|
||||
alpha_on_bye("Bdelete!")
|
||||
end, { desc = "Close buffer" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue