aboutsummaryrefslogtreecommitdiff
path: root/lua/config/mason.lua
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2026-02-19 11:27:04 +0000
committerTrey Bastian <hello@treybastian.com>2026-02-19 11:27:04 +0000
commit7f72818a2a8b79dd0f88157bfff430a2c08b0242 (patch)
treefa8ad2ad1255aa3b3a73f400fef0f4d8c295abbf /lua/config/mason.lua
parent6edc72539468ed40101c56288ba6a4c10c85d382 (diff)
streamlined lsp formatter linter and debugger setup
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,
+ },
+ },
+})