48 lines
1.9 KiB
Lua
48 lines
1.9 KiB
Lua
-- The MIT License (MIT)
|
|
--
|
|
-- Copyright © 2026 Scott E. Graves <scott.e.graves@protonmail.com>
|
|
--
|
|
-- 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.
|
|
--
|
|
local symbols = require("darcula.utils.symbols")
|
|
|
|
require("mason").setup {
|
|
install_root_dir = NV_DARCULA_MASON_ROOT,
|
|
PATH = "prepend",
|
|
ui = {
|
|
border = "rounded",
|
|
icons = {
|
|
package_installed = symbols.status.ok,
|
|
package_pending = symbols.status.checking,
|
|
package_uninstalled = symbols.status.uninstalled
|
|
}
|
|
}
|
|
}
|
|
|
|
local ensure_installed = vim.deepcopy(NV_DARCULA_MASON_INST_LIST)
|
|
vim.list_extend(ensure_installed, NV_DARCULA_MASON_TOOL_LIST)
|
|
|
|
local installer = require("mason-tool-installer")
|
|
installer.setup {
|
|
ensure_installed = ensure_installed,
|
|
integrations = {
|
|
["mason-lspconfig"] = true,
|
|
["mason-null-ls"] = false,
|
|
["mason-nvim-dap"] = false
|
|
},
|
|
run_on_start = NV_DARCULA_AUTO_INSTALL_DEPS
|
|
}
|