<!doctype html>
<html lang="cs">
	<head>
		<meta charset="UTF-8" />
		<meta
			name="description"
			content="ApolloNvim svoboda v programování...."
		/>
		<meta name="keywords" content="ApolloNvim Distro Návody" />
		<meta name="author" content="Kankys" />
		<meta
			name="viewport"
			content="width=device-width, initial-scale=1.0"
		/>
		<link rel="stylesheet" href="style.css" />
		<link rel="shortcut icon" href="../img/apollonvim.jpg" />
		<!--nav bar-->
		<script
			src="https://kit.fontawesome.com/0a43c6cd1f.js"
			crossorigin="anonymous"
		></script>
		<!--icons dark, go to up-->
		<link
			rel="stylesheet"
			href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
		/>
		<!--ubuntu fonts-->
		<style>
			@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
		</style>
		<title>ApolloNvim Návody</title>
	</head>

	<body>
		<header>
			<h1 class="title"><a href="index.html">🚀ApolloNvim</a></h1>
			<!-- Terminal - navigation -->
			<nav class="navigation">
				<ul>
					<li><a href="index.html">Home</a></li>
					<li>
						<a href="install.html"
							>Installation</a
						>
					</li>
					<li>
						<a href="plugins.html"
							>Plugins</a
						>
					</li>
					<li><a href="/cz/index.html">Česky</a></li>
				</ul>
			</nav>
			<div class="menu-icon">
				<!-- Ikona hamburger -->
				<i class="fa-solid fa-bars"></i>
				<!-- Ikona cross -->
				<!-- <i class="fa-solid fa-xmark"></i> -->
			</div>
		</header>
		<hr />
		<!--Začátek sekcí - co h2 sekce + fotogalerie-->
		<section class="content" id="welcome">
			<p>
				<strong
					>Always check before installing on
					Github for the source. This will prevent
					potential problems! If you're not
					you're not sure of the procedure or something is not clear,
					you'd better check the
					the documentation, write or find the forums
					the answer.</strong
				>
			</p>
			<section class="list">
				<ul>
					<li>
						<a href="#plug-vim"
							>How to install plug.vim into Neovim</a
						>
					</li>
					<li>
						<a href="#codeium"
							>How to install Codeium on Neovim</a
						>
					</li>
				</ul>
			</section>
			<section id="plug-vim" class="plug-vim">
				<h2 class="h2-install">
					How to install plug.vim into Neovim
				</h2>

				<p>
					But first, back up your current Neovim settings!!!
				</p>
				<p>Linux & Mac:</p>
				<div class="code-box">
					<p>/home/user/.config/nvim/init.vim</p>
				</div>
				<p>Windows:</p>
				<div class="code-box">
					<p>~\AppData\Local\nvim</p>
				</div>
				<p>
					Go to this
					<a
						href="https://github.com/junegunn/vim-plug"
						target="_blank"
						>page</a
					> under Installation, find your operating system and copy the link below it into your terminal and use Enter to install vim.plug.
				</p>
				<p>On Linux and macOS it will be this command:</p>
				<div class="code-box">
					<p>
						sh -c 'curl -fLo
						"${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim
						--create-dirs \
						https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
					</p>
				</div>
				<p>
					For Windows, the command can be found on the linked site above.
				</p>
				<!--<div class="code-box">-->
				<!--<p>-->
				<!--<LeftMouse>iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`-->
				<!--ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq-->
				<!--$env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force-->
				<!--</p>-->
				<!--</div>-->
				<p>
					Next, open the init.vim file and if you don't have it, create it here:
				</p>
				<p>Linux & Mac:</p>
				<div class="code-box">
					<p>/home/user/.config/nvim/init.vim</p>
				</div>
				<p>Windows:</p>
				<div class="code-box">
					<p>~\AppData\Local\nvim</p>
				</div>
				<p>
					And into it we insert and then save this code:
				</p>
				<div class="code-box">
					<p>
						call plug#begin(has('nvim') ?
						stdpath('data') . '/plugged' :
						'~/.vim/plugged')
					</p>
					<br />
					<p>
						# I'm going to be adding plugins in the future. Starting a PLug and
download address
					</p>
					<br />
					<p>call plug#end()</p>
				</div>
				<p>
					And use the Nvim command in the terminal to start Neovim. If you get an error message just click it.
				</p>
				<p>
					Use <code>Ctrl + :</code> to get to the command prompt and type <code>PlugInstall</code>
				</p>
				<p>
					A restartujeme Neovim. Příkazem
					<code>Ctrl + :</code> do príkazového
					řádku napíšete <code>q</code> a
					restartujeme Neovim.
				</p>
				<p>
					Takto pokaždé když si přidáte do
					init.vim pluginy, příkazem
					<code>PlugInstall</code> je
					nainstalujete a restartujeme Neovim.
				</p>
				<p>
					Zdroj na
					<a
						href="https://github.com/junegunn/vim-plug"
						target="_blank"
						>GitHub</a
					>
				</p>
			</section>

			<section id="codeium" class="codeium">
				ï
				<h2 class="h2-install">
					How to install Codeium on Neovim
				</h2>
				<p>
					<a
						href="https: //codeium.com"
						target="_blank"
						>Codeium</a
					>
					je alternativou k
					<a
						href="https://github.com/features/copilothttps://github.com/features/copilot"
						target="_blank"
						>GitHub Copilot</a
					>
					s tím, že pro jednotlivce je zdarma.
					Codeium hodnotím velmi pozitivně a
					Copilotu se vyrovná.
				</p>
				<p>
					Instalace pomocí plug.vim je jednoduchá,
					stačí pouze upravit svůj
					<code>init.vim</code>
				</p>
				<p>Vložíme do něj:</p>
				<div class="code-box">
					<p>
						" Free AI codium <br />
						Plug 'Exafunction/codeium.vim',
						{ 'branch': 'main' }
					</p>
				</div>
				<p>
					Výsledný <code>init.vim</code> bude
					vypadat takto:
				</p>
				<div class="code-box">
					<p>
						call plug#begin(has('nvim') ?
						stdpath('data') . '/plugged' :
						'~/.vim/plugged') <br />

						" Free AI codium <br />
						Plug 'Exafunction/codeium.vim',
						{ 'branch': 'main' } <br />
						call plug#end()
					</p>
				</div>
				<p>
					A restartujeme Neovim. Příkazem
					<code>Ctrl + :</code> do príkazového
					řádku napíšete <code>q</code> a
					restartujeme Neovim.
				</p>
				<p>
					Po restartu provedeme
					<code>PlugInstall</code> a ještě jednou
					restartujeme Neovim.
				</p>
				<p>
					Poslední krok bude konfigurace Codeium,
					příkazem <code>CodeiumEnable</code> do
					command line.
				</p>
				<p>
					Codium vás vyzve k propojení API se
					serverem Codium.
				</p>
				<p>A vše by Vám mělo fungovat.</p>
				<p>
					Zdroj na
					<a
						href="https://github.com/Exafunction/codeium.vim"
						target="_blank"
						>GitHub</a
					>
				</p>
			</section>
			<button
				onclick="scrollToTop()"
				id="scrollToTopBtn"
				title="Go to top"
			>
				<i class="fas fa-arrow-up"></i>
			</button>
		
			<footer>
				Copyright &copy;
				<a
					href="https://git.archoslinux.cz/kankys"
					target="_blank"
					>Lukáš Kaňka</a
				>
				2024 - 2025
			</footer>
		</section>
		<script src="script.js"></script>
	</body>
</html>