✨ Add mac-dotfiles
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
		
							parent
							
								
									d49a3c5404
								
							
						
					
					
						commit
						c014c6cd6e
					
				
					 34 changed files with 929 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								mac/.config/nvim/lua/plugins/none-ls.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								mac/.config/nvim/lua/plugins/none-ls.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
 | 
			
		||||
 | 
			
		||||
-- Customize None-ls sources
 | 
			
		||||
 | 
			
		||||
---@type LazySpec
 | 
			
		||||
return {
 | 
			
		||||
  "nvimtools/none-ls.nvim",
 | 
			
		||||
  opts = function(_, opts)
 | 
			
		||||
    -- opts variable is the default configuration table for the setup function call
 | 
			
		||||
    -- local null_ls = require "null-ls"
 | 
			
		||||
 | 
			
		||||
    -- Check supported formatters and linters
 | 
			
		||||
    -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
 | 
			
		||||
    -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
 | 
			
		||||
 | 
			
		||||
    -- Only insert new sources, do not replace the existing ones
 | 
			
		||||
    -- (If you wish to replace, use `opts.sources = {}` instead of the `list_insert_unique` function)
 | 
			
		||||
    opts.sources = require("astrocore").list_insert_unique(opts.sources, {
 | 
			
		||||
      -- Set a formatter
 | 
			
		||||
      -- null_ls.builtins.formatting.stylua,
 | 
			
		||||
      -- null_ls.builtins.formatting.prettier,
 | 
			
		||||
    })
 | 
			
		||||
  end,
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue