@@ -3,99 +3,86 @@ return {
33 " mason-org/mason.nvim" ,
44 config = function ()
55 require (" mason" ).setup ({
6- ui = {
7- icons = {
8- package_installed = " ✓" ,
9- package_pending = " ➜" ,
10- package_uninstalled = " ✗" ,
11- }
12- }
13- })
6+ ui = {
7+ icons = {
8+ package_installed = " ✓" ,
9+ package_pending = " ➜" ,
10+ package_uninstalled = " ✗" ,
11+ },
12+ },
13+ })
1414 end ,
1515 },
1616 {
1717 " mason-org/mason-lspconfig.nvim" ,
1818 config = function ()
1919 require (" mason-lspconfig" ).setup ({
2020 automatic_enable = false ,
21- ensure_installed = {
22- " ansiblels" ,
23- " awk_ls" ,
24- " bashls" ,
25- " clangd" ,
21+ -- skip heavy binary downloads in CI; lazy.nvim plugin code is still validated
22+ ensure_installed = vim .env .CI and {} or {
23+ " ansiblels" ,
24+ " awk_ls" ,
25+ " bashls" ,
26+ " clangd" ,
2627 " docker_compose_language_service" ,
2728 " dockerls" ,
2829 " dotls" ,
29- " elixirls" ,
30+ " elixirls" ,
3031 " eslint" ,
31- " gradle_ls" ,
32- " groovyls" ,
32+ " gradle_ls" ,
33+ " groovyls" ,
3334 " html" ,
34- " jdtls" ,
35- " jqls" ,
36- " jsonls" ,
37- " kotlin_language_server" ,
35+ " jdtls" ,
36+ " jqls" ,
37+ " jsonls" ,
38+ " kotlin_language_server" ,
3839 " lua_ls" ,
39- " matlab_ls" ,
40- " perlnavigator" ,
41- " pyright" ,
40+ " matlab_ls" ,
41+ " perlnavigator" ,
42+ " pyright" ,
4243 " rust_analyzer" ,
4344 " tsp_server" ,
4445 " yamlls" ,
4546 },
4647 })
4748 end ,
4849 },
49- {
50- " williamboman/mason.nvim" ,
51- " mfussenegger/nvim-lint" ,
52- " rshkarin/mason-nvim-lint" ,
53- config = function ()
54- require (' mason-nvim-lint' ).setup ({
55- -- Whether linters that are set up (via nvim-lint) should be automatically installed if they're not already installed.
56- -- It tries to find the specified linters in the mason's registry to proceed with installation.
57- -- This setting has no relation with the `ensure_installed` setting.
58- --- @type boolean
59- automatic_installation = true ,
60-
61- -- Disables warning notifications about misconfigurations such as invalid linter entries and incorrect plugin load order.
62- quiet_mode = false ,
63-
64- -- A list of linters to automatically install if they're not already installed. Example: { "eslint_d", "revive" }
65- -- This setting has no relation with the `automatic_installation` setting.
66- -- Names of linters should be taken from the mason's registry.
67- --- @type string[]
68- ensure_installed = {
69- " actionlint" ,
70- " ansible-lint" ,
71- " api-linter" ,
72- " black" ,
73- " cmakelang" ,
74- " csharpier" ,
75- " cpplint" ,
76- " dotenv-linter" ,
77- " elm-formatter" ,
78- " eslint_d" ,
79- " jq" ,
80- " kube-linter" ,
81- " luacheck" ,
82- " markdownlint" ,
83- " markdown-toc" ,
84- " prettier" ,
85- " pylint" ,
86- " xmlformatter" ,
87- " yamlfix" ,
88- " yamlfmt" ,
89- " yamllint" ,
90- " zsh" ,
91- },
92-
93- -- Avoid trying to install an unknown linter
94- ignore_install = {},
95-
96- })
97- end ,
98- },
50+ {
51+ " williamboman/mason.nvim" ,
52+ " mfussenegger/nvim-lint" ,
53+ " rshkarin/mason-nvim-lint" ,
54+ config = function ()
55+ require (" mason-nvim-lint" ).setup ({
56+ automatic_installation = not vim .env .CI ,
57+ quiet_mode = false ,
58+ ensure_installed = vim .env .CI and {} or {
59+ " actionlint" ,
60+ " ansible-lint" ,
61+ " api-linter" ,
62+ " black" ,
63+ " cmakelang" ,
64+ " csharpier" ,
65+ " cpplint" ,
66+ " dotenv-linter" ,
67+ " elm-formatter" ,
68+ " eslint_d" ,
69+ " jq" ,
70+ " kube-linter" ,
71+ " luacheck" ,
72+ " markdownlint" ,
73+ " markdown-toc" ,
74+ " prettier" ,
75+ " pylint" ,
76+ " xmlformatter" ,
77+ " yamlfix" ,
78+ " yamlfmt" ,
79+ " yamllint" ,
80+ " zsh" ,
81+ },
82+ ignore_install = {},
83+ })
84+ end ,
85+ },
9986 {
10087 " williamboman/mason-nvim-dap.nvim" ,
10188 dependencies = {
@@ -105,7 +92,7 @@ return {
10592 },
10693 config = function ()
10794 require (" mason-nvim-dap" ).setup ({
108- ensure_installed = {
95+ ensure_installed = vim . env . CI and {} or {
10996 " codelldb" ,
11097 " javatest" ,
11198 " javadbg" ,
0 commit comments