chore: don't reasign MiniDeps.* in plugin definitions
This commit is contained in:
parent
a9488e8751
commit
62699be903
|
@ -1,7 +1,5 @@
|
|||
add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
|
||||
|
||||
now(function()
|
||||
add("sainnhe/gruvbox-material")
|
||||
MiniDeps.now(function()
|
||||
MiniDeps.add("sainnhe/gruvbox-material")
|
||||
|
||||
vim.o.background = "dark"
|
||||
vim.g.gruvbox_material_background = "light"
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
|
||||
|
||||
later(function()
|
||||
add("ibhagwan/fzf-lua")
|
||||
MiniDeps.later(function()
|
||||
MiniDeps.add("ibhagwan/fzf-lua")
|
||||
|
||||
local fzf = require("fzf-lua")
|
||||
fzf.setup({
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
|
||||
|
||||
later(function()
|
||||
add("neovim/nvim-lspconfig")
|
||||
MiniDeps.later(function()
|
||||
MiniDeps.add("neovim/nvim-lspconfig")
|
||||
|
||||
vim.lsp.enable({
|
||||
"pyright",
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
|
||||
|
||||
now(function()
|
||||
MiniDeps.now(function()
|
||||
require("mini.notify").setup()
|
||||
vim.notify = MiniNotify.make_notify()
|
||||
end)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
|
||||
|
||||
later(function()
|
||||
add("stevearc/oil.nvim")
|
||||
MiniDeps.later(function()
|
||||
MiniDeps.add("stevearc/oil.nvim")
|
||||
require("oil").setup({ view_options = { show_hidden = true } })
|
||||
vim.keymap.set("n", "-", require("oil").open, { desc = "Open parent directory" })
|
||||
end)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
|
||||
local now_if_args = vim.fn.argc(-1) > 0 and now or later
|
||||
local now_if_args = vim.fn.argc(-1) > 0 and MiniDeps.now or MiniDeps.later
|
||||
|
||||
now_if_args(function()
|
||||
add({
|
||||
MiniDeps.add({
|
||||
source = "nvim-treesitter/nvim-treesitter",
|
||||
checkout = "main",
|
||||
hooks = { post_checkout = function() vim.cmd("TSUpdate") end },
|
||||
|
|
Loading…
Reference in New Issue