mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:17:35 +00:00
Move darknotify config to it's own file
This commit is contained in:
parent
00598ea1c4
commit
6f7627d290
@ -7,16 +7,6 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
|||||||
end
|
end
|
||||||
vim.cmd("packadd packer.nvim")
|
vim.cmd("packadd packer.nvim")
|
||||||
|
|
||||||
-- Configures dark-notify to use colors from my environment
|
|
||||||
local function config_dark_notify()
|
|
||||||
require("dark_notify").run({
|
|
||||||
onchange = function(_)
|
|
||||||
-- Defined in _colors
|
|
||||||
_G.update_colors()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local packer = require("packer")
|
local packer = require("packer")
|
||||||
local packer_util = require("packer.util")
|
local packer_util = require("packer.util")
|
||||||
local use = packer.use
|
local use = packer.use
|
||||||
@ -226,7 +216,9 @@ use({
|
|||||||
disable = not vim.g.is_mac,
|
disable = not vim.g.is_mac,
|
||||||
-- Download latest release on install
|
-- Download latest release on install
|
||||||
run = "curl -s https://api.github.com/repos/cormacrelf/dark-notify/releases/latest | jq '.assets[].browser_download_url' | xargs curl -Ls | tar xz -C ~/.local/bin/", -- luacheck: no max line length
|
run = "curl -s https://api.github.com/repos/cormacrelf/dark-notify/releases/latest | jq '.assets[].browser_download_url' | xargs curl -Ls | tar xz -C ~/.local/bin/", -- luacheck: no max line length
|
||||||
config = config_dark_notify,
|
config = function()
|
||||||
|
require("plugins.darknotify")
|
||||||
|
end,
|
||||||
requires = "https://github.com/nvim-lualine/lualine.nvim",
|
requires = "https://github.com/nvim-lualine/lualine.nvim",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
6
neovim/lua/plugins/darknotify.lua
Normal file
6
neovim/lua/plugins/darknotify.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
require("dark_notify").run({
|
||||||
|
onchange = function(_)
|
||||||
|
-- Defined in _colors
|
||||||
|
_G.update_colors()
|
||||||
|
end,
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user