|  | @@ -1,3 +1,17 @@
 | 
	
		
			
				|  |  | +O.formatters.filetype["sh"] = {
 | 
	
		
			
				|  |  | +  function()
 | 
	
		
			
				|  |  | +    return {
 | 
	
		
			
				|  |  | +      exe = O.lang.sh.formatter.exe,
 | 
	
		
			
				|  |  | +      args = O.lang.sh.formatter.args,
 | 
	
		
			
				|  |  | +      stdin = not (O.lang.sh.formatter.stdin ~= nil),
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  end,
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +require("formatter.config").set_defaults {
 | 
	
		
			
				|  |  | +  logging = false,
 | 
	
		
			
				|  |  | +  filetype = O.formatters.filetype,
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  if not require("lv-utils").check_lsp_client_active "bashls" then
 | 
	
		
			
				|  |  |    -- npm i -g bash-language-server
 | 
	
		
			
				|  |  |    require("lspconfig").bashls.setup {
 | 
	
	
		
			
				|  | @@ -26,7 +40,7 @@ if not require("lv-utils").check_lsp_client_active "efm" then
 | 
	
		
			
				|  |  |      -- init_options = {initializationOptions},
 | 
	
		
			
				|  |  |      cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
 | 
	
		
			
				|  |  |      init_options = { documentFormatting = true, codeAction = false },
 | 
	
		
			
				|  |  | -    root_dir = require("lspconfig").util.root_pattern(".git/"),
 | 
	
		
			
				|  |  | +    root_dir = require("lspconfig").util.root_pattern ".git/",
 | 
	
		
			
				|  |  |      filetypes = { "sh" },
 | 
	
		
			
				|  |  |      settings = {
 | 
	
		
			
				|  |  |        rootMarkers = { ".git/" },
 |