My neovim config
at main 98 lines 1.8 kB view raw
1vim.pack.add({ 2 "https://github.com/mason-org/mason-lspconfig.nvim", 3 "https://github.com/mason-org/mason.nvim", 4 "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim", 5 -- "https://github.com/jay-babu/mason-nvim-dap.nvim", 6}) 7 8require("mason").setup() 9-- require("mason-nvim-dap").setup() 10require("mason-lspconfig").setup() 11 12require("mason-tool-installer").setup({ 13 ensure_installed = { 14 "vale", 15 "lua_ls", 16 "stylua", 17 "bashls", 18 "emmet-language-server", 19 "ts_ls", 20 "astro", 21 "prettier", 22 "prettierd", 23 "eslint_d", 24 { 25 "jdtls", 26 condition = function() 27 return vim.fn.executable("java") == 1 28 end, 29 }, 30 { 31 "vscode-spring-boot-tools", 32 condition = function() 33 return vim.fn.executable("java") == 1 34 end, 35 }, 36 { 37 "lemminx", 38 condition = function() 39 return vim.fn.executable("java") == 1 40 end, 41 }, 42 { 43 "sonarlint-language-server", 44 condition = function() 45 return vim.fn.executable("java") == 1 46 end, 47 }, 48 { 49 "gradle_ls", 50 condition = function() 51 return vim.fn.executable("java") == 1 52 end, 53 }, 54 { 55 -- cobol language server requires java 56 "cobol_ls", 57 condition = function() 58 return vim.fn.executable("java") == 1 59 end, 60 }, 61 { 62 "rust_analyzer", 63 condition = function() 64 return vim.fn.executable("rustc") == 1 65 end, 66 }, 67 { 68 "golangci-lint", 69 condition = function() 70 return vim.fn.executable("go") == 1 71 end, 72 }, 73 { 74 "goimports", 75 condition = function() 76 return vim.fn.executable("go") == 1 77 end, 78 }, 79 { 80 "gopls", 81 condition = function() 82 return vim.fn.executable("go") == 1 83 end, 84 }, 85 { 86 "delve", 87 condition = function() 88 return vim.fn.executable("go") == 1 89 end, 90 }, 91 { 92 "buf", 93 condition = function() 94 return vim.fn.executable("protoc") == 1 95 end, 96 }, 97 }, 98})