-- The MIT License (MIT) -- -- Copyright © 2026 Scott E. Graves -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of this software -- and associated documentation files (the “Software”), to deal in the Software without restriction, -- including without limitation the rights to use, copy, modify, merge, publish, distribute, -- sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all copies or -- substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING -- BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- require("darcula.config") vim.api.nvim_create_autocmd( "PackChanged", { callback = function(ev) local kind = ev.data.kind if (ev.data.kind ~= "install" and kind ~= "update") then return end local name = ev.data.spec.name if NV_DARCULA_ENABLE_COC then if name == "coc.nvim" then vim.system( {"npm", "i"}, { cwd = vim.fs.joinpath( vim.fn.stdpath("data"), "site", "pack", "core", "opt", "coc.nvim" ) } ):wait() return end end if name == "nvim-treesitter" then require("darcula.setup.500_treesitter") vim.cmd("TSUpdate") return end end } ) vim.pack.add( { {src = "https://git.fifthgrid.com/sgraves/darcula_lush"}, { src = "https://github.com/catgoose/nvim-colorizer.lua", version = "85a5e83cd4daa258cf95c3204e277991d6fbe747" }, {src = "https://github.com/dart-lang/dart-vim-plugin"}, {src = "https://github.com/dstein64/nvim-scrollview"}, {src = "https://github.com/kyazdani42/nvim-tree.lua"}, {src = "https://github.com/leoluz/nvim-dap-go"}, {src = "https://github.com/lewis6991/gitsigns.nvim"}, {src = "https://github.com/mfussenegger/nvim-dap"}, {src = "https://github.com/mhartington/formatter.nvim"}, {src = "https://github.com/nvim-lua/plenary.nvim"}, {src = "https://github.com/nvim-mini/mini.nvim"}, {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"}, {src = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"}, {src = "https://github.com/rcarriga/nvim-dap-ui"}, {src = "https://github.com/rktjmp/lush.nvim"}, {src = "https://github.com/rktjmp/shipwright.nvim"}, {src = "https://github.com/sgraves76/cppman.nvim"}, {src = "https://github.com/stevearc/dressing.nvim"}, {src = "https://github.com/ten3roberts/window-picker.nvim"}, {src = "https://github.com/tpope/vim-dispatch"}, {src = "https://github.com/tpope/vim-fugitive"} }, {confirm = false} ) if NV_DARCULA_ENABLE_COC then vim.pack.add( { {src = "https://github.com/fannheyward/telescope-coc.nvim"}, {src = "https://github.com/neoclide/coc.nvim", {version = "release"}}, {src = "https://github.com/honza/vim-snippets"} }, {confirm = false} ) else vim.pack.add( { {src = "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim"}, {src = "https://github.com/akinsho/flutter-tools.nvim"}, {src = "https://github.com/kosayoda/nvim-lightbulb"}, {src = "https://github.com/mason-org/mason-lspconfig.nvim"}, {src = "https://github.com/mason-org/mason.nvim"}, {src = "https://github.com/neovim/nvim-lspconfig"} }, {confirm = false} ) end vim.cmd("packadd! plenary.nvim") vim.cmd("packadd! lush.nvim") vim.cmd("packadd! darcula_lush") vim.cmd("colorscheme " .. NV_DARCULA_COLOR_SCHEME) if NV_DARCULA_ENABLE_COC then vim.cmd("packadd! coc.nvim") else vim.cmd("packadd! nvim-lspconfig") end vim.cmd("packadd! cppman.nvim") if NV_DARCULA_ENABLE_COC then vim.cmd("packadd! dart-vim-plugin") end vim.cmd("packadd! dressing.nvim") if not NV_DARCULA_ENABLE_COC then vim.cmd("packadd! flutter-tools.nvim") end vim.cmd("packadd! formatter.nvim") vim.cmd("packadd! gitsigns.nvim") if not NV_DARCULA_ENABLE_COC then vim.cmd("packadd! mason-lspconfig.nvim") end if not NV_DARCULA_ENABLE_COC then vim.cmd("packadd! mason.nvim") end vim.cmd("packadd! mini.nvim") vim.cmd("packadd! nvim-colorizer.lua") vim.cmd("packadd! nvim-dap") vim.cmd("packadd! nvim-dap-go") vim.cmd("packadd! nvim-dap-ui") if not NV_DARCULA_ENABLE_COC then vim.cmd("packadd! nvim-lightbulb") end vim.cmd("packadd! nvim-nio") vim.cmd("packadd! nvim-scrollview") vim.cmd("packadd! nvim-tree.lua") vim.cmd("packadd! nvim-treesitter") vim.cmd("packadd! nvim-treesitter-textobjects") vim.cmd("packadd! shipwright.nvim") if NV_DARCULA_ENABLE_COC then vim.cmd("packadd! telescope-coc.nvim") end vim.cmd("packadd! telescope-ui-select.nvim") vim.cmd("packadd! telescope.nvim") vim.cmd("packadd! vim-dispatch") vim.cmd("packadd! vim-fugitive") if NV_DARCULA_ENABLE_COC then vim.cmd("packadd! vim-snippets") end vim.cmd("packadd! window-picker.nvim")