added nvim functions
This commit is contained in:
		
							
								
								
									
										112
									
								
								nix/users/base/neovim/core/functions.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										112
									
								
								nix/users/base/neovim/core/functions.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,112 @@
 | 
			
		||||
function edit_nvim()
 | 
			
		||||
    vim.cmd(":e $MYVIMRC")
 | 
			
		||||
    vim.cmd(":cd ~/.config/nvim")
 | 
			
		||||
    vim.cmd(":NvimTreeOpen")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function randomquote()
 | 
			
		||||
    local quote = {
 | 
			
		||||
        "Bing Chilling",
 | 
			
		||||
        "The Stink Boys",
 | 
			
		||||
        "Whopper Whopper Whopper Whopper Junior Double Triple Whopper",
 | 
			
		||||
        "White Monster",
 | 
			
		||||
        "The system plays us everday...",
 | 
			
		||||
        "sudo systemctl restart justinlime",
 | 
			
		||||
        "sudo systemctl start justinlime",
 | 
			
		||||
        "sudo systemctl stop justinlime",
 | 
			
		||||
        "sudo systemctl enable justinlime",
 | 
			
		||||
        "sudo systemctl disable justinlime",
 | 
			
		||||
    }
 | 
			
		||||
    return quote[math.random(1,#quote)] 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function randomsplash()
 | 
			
		||||
    local splash = {
 | 
			
		||||
        {
 | 
			
		||||
        [[  ⠀                                                 ]],
 | 
			
		||||
        [[ ⠀⠀            ⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝        ]],
 | 
			
		||||
        [[  ⠀           ⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇        ]],
 | 
			
		||||
        [[ ⠀⠀            ⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏        ⠀]],
 | 
			
		||||
        [[ ⠀      ⠀      ⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏⢮⠷⠁⠀        ⠀ ]],
 | 
			
		||||
        [[ ⠀         ⠀   ⠀⠀⠈⠊⠆⡃⠕⢕⢇⢇⢇⢇⢇⢏⢎⢎⢆⢄⠀⢑⣽⣿⢝⠲⠉⠀⠀⠀        ⠀]],
 | 
			
		||||
        [[ ⠀          ⠀⠀⠀  ⠀⠀⡿⠂⠠⠀⡇⢇⠕⢈⣀⠀⠁⠡⠣⡣⡫⣂⣿⠯⢪⠰⠂⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[ ⠀⠀            ⠀⠀⠀⡦⡙⡂⢀⢤⢣⠣⡈⣾⡃⠠⠄⠀⡄⢱⣌⣶⢏⢊⠂⠀⠀⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[ ⠀  ⠀          ⠀⠀⠀⢝⡲⣜⡮⡏⢎⢌⢂⠙⠢⠐⢀⢘⢵⣽⣿⡿⠁⠁⠀⠀⠀⠀⠀⠀        ⠀]],
 | 
			
		||||
        [[ ⠀   ⠀         ⠀⠀⠀⠨⣺⡺⡕⡕⡱⡑⡆⡕⡅⡕⡜⡼⢽⡻⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[ ⠀   ⠀         ⠀⠀⠀⣼⣳⣫⣾⣵⣗⡵⡱⡡⢣⢑⢕⢜⢕⡝⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[ ⠀    ⠀        ⠀⠀⣴⣿⣾⣿⣿⣿⡿⡽⡑⢌⠪⡢⡣⣣⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[ ⠀     ⠀       ⠀⠀⡟⡾⣿⢿⢿⢵⣽⣾⣼⣘⢸⢸⣞⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[ ⠀    ⠀        ⠀⠀⠀⠁⠇⠡⠩⡫⢿⣝⡻⡮⣒⢽⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀        ]],
 | 
			
		||||
        [[  ⠀    _   _                     _            ___     ]], 
 | 
			
		||||
        [[  ⠀   | \ | |                   (_)          |__ \    ]],
 | 
			
		||||
        [[  ⠀   |  \| |  ___   ___ __   __ _  _ __ ___    ) |   ]],
 | 
			
		||||
        [[  ⠀   | . ` | / _ \ / _ \\ \ / /| || '_ ` _ \  / /    ]],
 | 
			
		||||
        [[  ⠀   | |\  ||  __/| (_) |\ V / | || | | | | ||_|     ]],
 | 
			
		||||
        [[  ⠀   |_| \_| \___| \___/  \_/  |_||_| |_| |_|(_)     ]],
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        [[______________________________________________________]],
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        [[⠀⠀⠀⠀⠀⡰⢂⣾⠿⠛⠒⠚⠛⠃⠺⢶⡀⠀⠀⠀⠀⠀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⠀⠀⢠⡣⠋⠁⠀⠀⠀⠀⠀⢀⡐⠒⢙⣄⠀⠀⠀⠀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⠀⠀⡘⠀⠀⠀⠀⠀⠀⢄⠉⠀⠐⠀⠀⠙⢦⠀⠀⠀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⠀⣾⠁⠀⠀⠄⠂⢈⣠⠎⠀⠀⣸⣿⡿⠓⢬⡇⠀⠀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⢸⡟⠀⠔⣁⣤⣶⣿⠋⢰⠀⠀⣿⡟⠻⣦⠀⢳⠀⠀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⣷⡇⢠⣾⢟⢭⣭⡭⡄⠀⡆⠀⣿⣷⣶⠺⡆⢸⡄⠀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⠇⡇⠛⠡⣑⣈⣛⠝⢁⡀⠇⠀⣿⡿⠛⠒⣡⠇⣧⣀⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⢠⠁⠈⠐⠤⠄⠀⣠⢸⠈⠢⠀⣿⡇⠀⠀⠠⠚⣿⣿⠀⠀⠀]],
 | 
			
		||||
        [[⡄⠀⢾⠀⡆⠠⣴⠞⠯⡀⠈⠙⠲⣶⣿⡇⠑⣦⡄⠀⣿⣿⠀⠀⠀]],
 | 
			
		||||
        [[⠈⠺⡮⠀⢡⠀⠀⠀⠀⠀⠁⠐⠒⠒⠛⠃⠈⠛⠇⠀⡏⡏⠀⠀⠀]],
 | 
			
		||||
        [[⠀⢰⠁⠀⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡄⠀⢷⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠃⠀⢸⠀⠀⠀]],
 | 
			
		||||
        [[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡄⠀⠀]],
 | 
			
		||||
        [[⠀⠀⢣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠸⡳⡀⠀]],
 | 
			
		||||
        [[⠀⠀⠀⠑⢄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣯⣼⡇⠑⣄]],
 | 
			
		||||
        [[                                                    ]],
 | 
			
		||||
        [[ ███╗   ██╗███████╗ ██████╗ ██╗   ██╗██╗███╗   ███╗ ]],
 | 
			
		||||
        [[ ████╗  ██║██╔════╝██╔═══██╗██║   ██║██║████╗ ████║ ]],
 | 
			
		||||
        [[ ██╔██╗ ██║█████╗  ██║   ██║██║   ██║██║██╔████╔██║ ]],
 | 
			
		||||
        [[ ██║╚██╗██║██╔══╝  ██║   ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ]],
 | 
			
		||||
        [[ ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ]],
 | 
			
		||||
        [[ ╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═══╝  ╚═╝╚═╝     ╚═╝ ]],
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        [[______________________________________________________]],
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        [[  ⠀                                                   ]],
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
        [[                              ]],
 | 
			
		||||
        [[⣿⣿⣿⣿⡏⣀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⢏⣴⣿⣷⠀⠀⠀⠀⠀⢾⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣟⣾⣿⡟⠁⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣷⢢⠀⠀⠀⠀⠀⠀⠀⢸⣿]],
 | 
			
		||||
        [[⣿⣿⣿⣿⣟⠀⡴⠄⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⣿]],
 | 
			
		||||
        [[⣿⣿⣿⠟⠻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠶⢴⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⣿]],
 | 
			
		||||
        [[⣿⣁⡀⠀⠀⢰⢠⣦⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿⡄⠀⣴⣶⣿⡄⣿]],
 | 
			
		||||
        [[⣿⡋⠀⠀⠀⠎⢸⣿⡆⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⠗⢘⣿⣟⠛⠿⣼]],
 | 
			
		||||
        [[⣿⣿⠋⢀⡌⢰⣿⡿⢿⡀⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⡇⠀⢸⣿⣿⣧⢀⣼]],
 | 
			
		||||
        [[⣿⣿⣷⢻⠄⠘⠛⠋⠛⠃⠀⠀⠀⠀⠀⢿⣧⠈⠉⠙⠛⠋⠀⠀⠀⣿⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣧⠀⠈⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠟⠀⠀⠀⠀⢀⢃⠀⠀⢸⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⡿⠀⠴⢗⣠⣤⣴⡶⠶⠖⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡸⠀⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⡀⢠⣾⣿⠏⠀⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠉⠀⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⣧⠈⢹⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⣿⡄⠈⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
 | 
			
		||||
        [[⣿⣿⣿⣿⣿⣦⣄⣀⣀⣀⣀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
 | 
			
		||||
        [[                               __                ]],
 | 
			
		||||
        [[  ___     ___    ___   __  __ /\_\    ___ ___    ]],
 | 
			
		||||
        [[ / _ `\  / __`\ / __`\/\ \/\ \\/\ \  / __` __`\  ]],
 | 
			
		||||
        [[/\ \/\ \/\  __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]],
 | 
			
		||||
        [[\ \_\ \_\ \____\ \____/\ \___/  \ \_\ \_\ \_\ \_\]],
 | 
			
		||||
        [[ \/_/\/_/\/____/\/___/  \/__/    \/_/\/_/\/_/\/_/]],
 | 
			
		||||
        [[                                                 ]],
 | 
			
		||||
        [[______________________________________________________]],
 | 
			
		||||
        [[                                                 ]],
 | 
			
		||||
        [[                                                 ]],
 | 
			
		||||
        },
 | 
			
		||||
    }
 | 
			
		||||
    return splash[math.random(1,#splash)] 
 | 
			
		||||
end
 | 
			
		||||
@@ -169,6 +169,7 @@
 | 
			
		||||
 | 
			
		||||
    extraLuaConfig = ''
 | 
			
		||||
      ${builtins.readFile ./core/colors.lua}
 | 
			
		||||
      ${builtins.readFile ./core/functions.lua}
 | 
			
		||||
      ${builtins.readFile ./core/keymaps.lua}
 | 
			
		||||
      ${builtins.readFile ./core/options.lua}
 | 
			
		||||
    '';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user