chore(mason): make it easier to modify list_insert_unique call
				
					
				
			This commit is contained in:
		@@ -9,8 +9,8 @@ return {
 | 
			
		||||
    opts = function(_, opts)
 | 
			
		||||
      -- add more things to the ensure_installed table protecting against community packs modifying it
 | 
			
		||||
      opts.ensure_installed = require("astrocore").list_insert_unique(
 | 
			
		||||
        opts.ensure_installed
 | 
			
		||||
        -- "lua_ls",
 | 
			
		||||
        opts.ensure_installed,
 | 
			
		||||
        "lua_ls"
 | 
			
		||||
        -- add more arguments for adding more language servers
 | 
			
		||||
      )
 | 
			
		||||
    end,
 | 
			
		||||
@@ -22,9 +22,9 @@ return {
 | 
			
		||||
    opts = function(_, opts)
 | 
			
		||||
      -- add more things to the ensure_installed table protecting against community packs modifying it
 | 
			
		||||
      opts.ensure_installed = require("astrocore").list_insert_unique(
 | 
			
		||||
        opts.ensure_installed
 | 
			
		||||
        -- "prettier",
 | 
			
		||||
        -- "stylua",
 | 
			
		||||
        opts.ensure_installed,
 | 
			
		||||
        "prettier",
 | 
			
		||||
        "stylua"
 | 
			
		||||
        -- add more arguments for adding more null-ls sources
 | 
			
		||||
      )
 | 
			
		||||
    end,
 | 
			
		||||
@@ -35,8 +35,8 @@ return {
 | 
			
		||||
    opts = function(_, opts)
 | 
			
		||||
      -- add more things to the ensure_installed table protecting against community packs modifying it
 | 
			
		||||
      opts.ensure_installed = require("astrocore").list_insert_unique(
 | 
			
		||||
        opts.ensure_installed
 | 
			
		||||
        -- "python",
 | 
			
		||||
        opts.ensure_installed,
 | 
			
		||||
        "python"
 | 
			
		||||
        -- add more arguments for adding more debuggers
 | 
			
		||||
      )
 | 
			
		||||
    end,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user