add: custom mason ensure installed

This commit is contained in:
asep.komarudin 2024-06-28 12:01:06 +07:00
parent fc32c1b69c
commit 6da9ec51d8
9 changed files with 100 additions and 17 deletions

View file

@ -4,6 +4,29 @@ if pcode.active_java_config.active then
-- {
-- "mfussenegger/nvim-jdtls",
-- },
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "java" })
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "jdtls" })
end,
},
{
"stevearc/conform.nvim",
event = "VeryLazy",
opts = function(_, opts)
local package="google-java-format"
require("user.utils.mason").try_install(package)
opts.formatters_by_ft.java = { package }
end,
},
{
"nvim-neotest/neotest",
dependencies = {