22 lines
		
	
	
		
			711 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			711 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
try %{ 
 | 
						|
 | 
						|
    plug "gustavo-hms/peneira" %{
 | 
						|
        require-module peneira
 | 
						|
    }
 | 
						|
 } catch %{
 | 
						|
    echo -debug "Error while evaluating 'luar' configuration: %val{error}"
 | 
						|
 | 
						|
    set-option -add current plug_conf_errors "Error while evaluating 'luar' configuration:"
 | 
						|
    set-option -add current plug_conf_errors %sh{ printf "\n    " }
 | 
						|
    set-option -add current plug_conf_errors %val{error}
 | 
						|
    set-option -add current plug_conf_errors %sh{ printf "\n\n" }
 | 
						|
 | 
						|
    hook -once -group plug-conf-err global WinDisplay .* %{
 | 
						|
        info -style modal -title "plug.kak error" "%opt{plug_conf_errors}"
 | 
						|
        on-key %{
 | 
						|
            info -style modal
 | 
						|
            execute-keys -with-maps -with-hooks %val{key}
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |