added NV_DARCULA_AUTO_INSTALL_DEPS
This commit is contained in:
1 parent
80668a26be
commit
8a0acba943
3 files changed
+8
-23
No files matched your search
@@ -109,7 +109,10 @@ vim.list_extend(
|
||||
{src = "https://github.com/nvim-neotest/nvim-nio"},
|
||||
{src = "https://github.com/nvim-telescope/telescope-ui-select.nvim"},
|
||||
{src = "https://github.com/nvim-telescope/telescope.nvim"},
|
||||
{src = "https://github.com/nvim-treesitter/nvim-treesitter", version="4916d6592ede8c07973490d9322f187e07dfefac"},
|
||||
{
|
||||
src = "https://github.com/nvim-treesitter/nvim-treesitter",
|
||||
version = "4916d6592ede8c07973490d9322f187e07dfefac"
|
||||
},
|
||||
{src = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"},
|
||||
{src = "https://github.com/rcarriga/nvim-dap-ui"},
|
||||
{src = "https://github.com/rktjmp/shipwright.nvim"},
|
||||
@@ -123,24 +126,4 @@ vim.list_extend(
|
||||
|
||||
vim.pack.add(packages, {confirm = false})
|
||||
|
||||
local theme_set = false
|
||||
local set_colorscheme = function()
|
||||
if theme_set then
|
||||
return
|
||||
end
|
||||
|
||||
vim.cmd("colorscheme " .. NV_DARCULA_COLOR_SCHEME)
|
||||
theme_set = true
|
||||
end
|
||||
|
||||
for _, pkg in ipairs(packages) do
|
||||
local parts = vim.split(pkg.src, "/", {plain = true})
|
||||
local name = parts[#parts]
|
||||
vim.cmd("packadd! " .. name)
|
||||
|
||||
if name == NV_DARCULA_COLOR_SCHEME then
|
||||
set_colorscheme()
|
||||
end
|
||||
end
|
||||
|
||||
set_colorscheme()
|
||||
vim.cmd("colorscheme " .. NV_DARCULA_COLOR_SCHEME)
|
||||
Reference in new issue
Block a user