aboutsummaryrefslogtreecommitdiff
path: root/lua/config/mason.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/mason.lua')
-rw-r--r--lua/config/mason.lua62
1 files changed, 62 insertions, 0 deletions
diff --git a/lua/config/mason.lua b/lua/config/mason.lua
new file mode 100644
index 0000000..b32bd47
--- /dev/null
+++ b/lua/config/mason.lua
@@ -0,0 +1,62 @@
+vim.pack.add({
+ "https://github.com/mason-org/mason-lspconfig.nvim",
+ "https://github.com/mason-org/mason.nvim",
+ "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim",
+ -- "https://github.com/jay-babu/mason-nvim-dap.nvim",
+})
+
+require("mason").setup()
+-- require("mason-nvim-dap").setup()
+require("mason-lspconfig").setup()
+
+require("mason-tool-installer").setup({
+ ensure_installed = {
+ "vale",
+ "lua_ls",
+ "stylua",
+ "bashls",
+ "emmet-language-server",
+ "ts_ls",
+ "astro",
+ "prettier",
+ "prettierd",
+ "eslint_d",
+ {
+ "jdtls",
+ condition = function()
+ return vim.fn.executable("java") == 1
+ end,
+ },
+ {
+ "vscode-spring-boot-tools",
+ condition = function()
+ return vim.fn.executable("java") == 1
+ end,
+ },
+ {
+ "lemminx",
+ condition = function()
+ return vim.fn.executable("java") == 1
+ end,
+ },
+ {
+ "sonarlint-language-server",
+ condition = function()
+ return vim.fn.executable("java") == 1
+ end,
+ },
+ {
+ "gradle_ls",
+ condition = function()
+ return vim.fn.executable("java") == 1
+ end,
+ },
+ {
+ -- cobol language server requires java
+ "cobol_ls",
+ condition = function()
+ return vim.fn.executable("java") == 1
+ end,
+ },
+ },
+})