-- 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") -- The colorscheme is loaded from this module, before darcula.options. vim.opt.termguicolors = NV_DARCULA_TERMGUI_COLORS 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 end } ) local packages = { {src = "https://github.com/nvim-lua/plenary.nvim"}, {src = "https://github.com/rktjmp/lush.nvim"}, {src = "https://git.fifthgrid.com/sgraves/darcula_lush"}, {src = "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim"}, {src = "https://github.com/mason-org/mason-lspconfig.nvim"}, {src = "https://github.com/mason-org/mason.nvim"} } if NV_DARCULA_ENABLE_COC then vim.list_extend( packages, { {src = "https://github.com/neoclide/coc.nvim", {version = "release"}}, {src = "https://github.com/fannheyward/telescope-coc.nvim"}, {src = "https://github.com/honza/vim-snippets"} } ) else vim.list_extend( packages, { {src = "https://github.com/hrsh7th/nvim-cmp"}, {src = "https://github.com/hrsh7th/cmp-buffer"}, {src = "https://github.com/hrsh7th/cmp-calc"}, {src = "https://github.com/abeldekat/cmp-mini-snippets"}, {src = "https://github.com/hrsh7th/cmp-nvim-lsp"}, {src = "https://github.com/hrsh7th/cmp-path"}, {src = "https://github.com/rafamadriz/friendly-snippets"}, {src = "https://github.com/neovim/nvim-lspconfig"}, {src = "https://github.com/akinsho/flutter-tools.nvim"}, {src = "https://github.com/ray-x/lsp_signature.nvim"} } ) end vim.list_extend( packages, { {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-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", 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"}, {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"} } ) vim.pack.add(packages, {confirm = false}) vim.cmd("colorscheme " .. NV_DARCULA_COLOR_SCHEME)