Skip to content

Commit e2fc483

Browse files
committed
add install/uninstall instructions for flatpak #2799
1 parent 9a0fd38 commit e2fc483

File tree

2 files changed

+52
-10
lines changed

2 files changed

+52
-10
lines changed

src/components/docpage/install.tsx

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,69 @@ import create_copyIcon from "~/components/doc_comps/clipboard";
44
export const osInfos = [
55
{
66
name: "linux / macos",
7-
cmd: "git clone https://github.com/NvChad/starter ~/.config/nvim && nvim",
7+
8+
cmds: (
9+
<>
10+
<pre>
11+
<code class="hljs">
12+
git clone https://github.com/NvChad/starter ~/.config/nvim && nvim
13+
</code>
14+
</pre>
15+
</>
16+
),
817
icon: "i-mingcute:hashtag-fill",
918
},
19+
20+
{
21+
name: "flatpak",
22+
icon: "i-simple-icons:flatpak",
23+
cmds: (
24+
<>
25+
<pre>
26+
<code class="hljs">
27+
git clone https://github.com/NvChad/starter ~/.var/app/io.neovim.nvim/config/nvim && flatpak run io.neovim.nvim
28+
</code>
29+
</pre>
30+
</>
31+
),
32+
},
33+
34+
1035
{
1136
name: "windows",
1237
icon: "i-mdi:windows",
1338
cmds: (
1439
<>
1540
<li>If you're using Command Prompt(CMD)</li>
1641

17-
<pre class="hljs">
18-
git clone https://github.com/NvChad/starter
19-
%USERPROFILE%\AppData\Local\nvim && nvim
42+
<pre>
43+
<code class="hljs">
44+
git clone https://github.com/NvChad/starter
45+
%USERPROFILE%\AppData\Local\nvim && nvim
46+
</code>
2047
</pre>
2148

2249
<li>If you're using PowerShell(pwsh)</li>
2350

24-
<pre class="hljs">
25-
git clone https://github.com/NvChad/starter
26-
$ENV:USERPROFILE\AppData\Local\nvim && nvim
51+
<pre>
52+
<code class="hljs">
53+
git clone https://github.com/NvChad/starter
54+
$ENV:USERPROFILE\AppData\Local\nvim && nvim
55+
</code>
2756
</pre>
2857

2958
<b>If the above path doesnt work, try any of these paths :</b>
3059
<li>For CMD : %LOCALAPPDATA%\nvim </li>
31-
<pre class="hljs">C:\Users\%USERNAME%\AppData\Local\nvim</pre>
60+
61+
<pre>
62+
<code class="hljs">C:\Users\%USERNAME%\AppData\Local\nvim </code>
63+
</pre>
64+
3265
<li>For PowerShell : $ENV:LocalAppData\nvim </li>
33-
<pre class="hljs">C:\Users\$ENV:USERNAME\AppData\Local\nvim</pre>
66+
67+
<pre>
68+
<code class="hljs">C:\Users\$ENV:USERNAME\AppData\Local\nvim </code>
69+
</pre>
3470
</>
3571
),
3672
},
@@ -57,7 +93,7 @@ export default () => (
5793
<div flex="~ wrap" gap-5>
5894
{osInfos.map((x) => (
5995
<button
60-
capitalize='~'
96+
capitalize="~"
6197
onClick={() => setOS(x)}
6298
class={
6399
os().name == x.name ? "bg-emerald2 dark:bg-sky3 dark:text-black" : ""

src/routes/docs/quickstart/install.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@ import OS_Selector from "~/components/docpage/install";
3333
```bash
3434
# Linux / Macos (unix)
3535
rm -rf ~/.config/nvim
36+
rm -rf ~/.local/state/nvim
3637
rm -rf ~/.local/share/nvim
3738

39+
# Flatpak (linux)
40+
rm -rf ~/.var/app/io.neovim.nvim/config/nvim
41+
rm -rf ~/.var/app/io.neovim.nvim/data/nvim
42+
rm -rf ~/.var/app/io.neovim.nvim/.local/state/nvim
43+
3844
# Windows CMD
3945
rd -r ~\AppData\Local\nvim
4046
rd -r ~\AppData\Local\nvim-data

0 commit comments

Comments
 (0)