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