@@ -24,11 +24,13 @@ If you are experiencing issues, please make sure you have the latest versions.
2424External Requirements:
2525- Basic utils: ` git ` , ` make ` , ` unzip ` , C Compiler (` gcc ` )
2626- [ ripgrep] ( https://github.com/BurntSushi/ripgrep#installation )
27+ - Clipboard tool (xclip/xsel/win32yank or other depending on the platform)
2728- A [ Nerd Font] ( https://www.nerdfonts.com/ ) : optional, provides various icons
2829 - if you have it set ` vim.g.have_nerd_font ` in ` init.lua ` to true
30+ - Emoji fonts (Ubuntu only, and only if you want emoji!) ` sudo apt install fonts-noto-color-emoji `
2931- Language Setup:
30- - If want to write Typescript, you need ` npm `
31- - If want to write Golang, you will need ` go `
32+ - If you want to write Typescript, you need ` npm `
33+ - If you want to write Golang, you will need ` go `
3234 - etc.
3335
3436> ** NOTE**
@@ -45,8 +47,8 @@ Neovim's configurations are located under the following paths, depending on your
4547| OS | PATH |
4648| :- | :--- |
4749| Linux, MacOS | ` $XDG_CONFIG_HOME/nvim ` , ` ~/.config/nvim ` |
48- | Windows (cmd)| ` %userprofile%\AppData\Local \nvim\ ` |
49- | Windows (powershell)| ` $env:USERPROFILE\AppData\Local \nvim\ ` |
50+ | Windows (cmd)| ` %localappdata% \nvim\ ` |
51+ | Windows (powershell)| ` $env:LOCALAPPDATA \nvim\ ` |
5052
5153#### Recommended Step
5254
@@ -55,9 +57,13 @@ so that you have your own copy that you can modify, then install by cloning the
5557fork to your machine using one of the commands below, depending on your OS.
5658
5759> ** NOTE**
58- > Your fork's url will be something like this:
60+ > Your fork's URL will be something like this:
5961> ` https://github.com/<your_github_username>/kickstart.nvim.git `
6062
63+ You likely want to remove ` lazy-lock.json ` from your fork's ` .gitignore ` file
64+ too - it's ignored in the kickstart repo to make maintenance easier, but it's
65+ [ recommended to track it in version control] ( https://lazy.folke.io/usage/lockfile ) .
66+
6167#### Clone kickstart.nvim
6268> ** NOTE**
6369> If following the recommended step above (i.e., forking the repo), replace
@@ -76,13 +82,13 @@ git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HO
7682If you're using ` cmd.exe ` :
7783
7884```
79- git clone https://github.com/nvim-lua/kickstart.nvim.git %userprofile%\AppData\Local\ nvim\
85+ git clone https://github.com/nvim-lua/kickstart.nvim.git "%localappdata%\ nvim"
8086```
8187
8288If you're using ` powershell.exe `
8389
8490```
85- git clone https://github.com/nvim-lua/kickstart.nvim.git $ env:USERPROFILE\AppData\Local\ nvim\
91+ git clone https://github.com/nvim-lua/kickstart.nvim.git "${ env:LOCALAPPDATA}\ nvim"
8692```
8793
8894</details >
@@ -96,83 +102,27 @@ nvim
96102```
97103
98104That's it! Lazy will install all the plugins you have. Use ` :Lazy ` to view
99- current plugin status. Hit ` q ` to close the window.
100-
101- Read through the ` init.lua ` file in your configuration folder for more
102- information about extending and exploring Neovim.
103-
104-
105- #### Examples of adding popularly requested plugins
106-
107- NOTE: You'll need to uncomment the line in the init.lua that turns on loading custom plugins.
108-
109- <details >
110- <summary >Adding autopairs</summary >
111-
112- This will automatically install [ windwp/nvim-autopairs] ( https://github.com/windwp/nvim-autopairs )
113- and enable it on startup. For more information, see documentation for
114- [ lazy.nvim] ( https://github.com/folke/lazy.nvim ) .
115-
116- In the file: ` lua/custom/plugins/autopairs.lua ` , add:
117-
118- ``` lua
119- -- File: lua/custom/plugins/autopairs.lua
120-
121- return {
122- " windwp/nvim-autopairs" ,
123- -- Optional dependency
124- dependencies = { ' hrsh7th/nvim-cmp' },
125- config = function ()
126- require (" nvim-autopairs" ).setup {}
127- -- If you want to automatically add `(` after selecting a function or method
128- local cmp_autopairs = require (' nvim-autopairs.completion.cmp' )
129- local cmp = require (' cmp' )
130- cmp .event :on (
131- ' confirm_done' ,
132- cmp_autopairs .on_confirm_done ()
133- )
134- end ,
135- }
136- ```
137-
138- </details >
139- <details >
140- <summary >Adding a file tree plugin</summary >
105+ the current plugin status. Hit ` q ` to close the window.
141106
142- This will install the tree plugin and add the command ` :Neotree ` for you.
143- For more information, see the documentation at
144- [ neo-tree.nvim] ( https://github.com/nvim-neo-tree/neo-tree.nvim ) .
107+ #### Read The Friendly Documentation
145108
146- In the file: ` lua/custom/plugins/filetree.lua ` , add:
109+ Read through the ` init.lua ` file in your configuration folder for more
110+ information about extending and exploring Neovim. That also includes
111+ examples of adding popularly requested plugins.
147112
148- ``` lua
149- -- File: lua/custom/plugins/filetree.lua
150-
151- return {
152- " nvim-neo-tree/neo-tree.nvim" ,
153- version = " *" ,
154- dependencies = {
155- " nvim-lua/plenary.nvim" ,
156- " nvim-tree/nvim-web-devicons" , -- not strictly required, but recommended
157- " MunifTanjim/nui.nvim" ,
158- },
159- config = function ()
160- require (' neo-tree' ).setup {}
161- end ,
162- }
163- ```
113+ > [ !NOTE]
114+ > For more information about a particular plugin check its repository's documentation.
164115
165- </details >
166116
167117### Getting Started
168118
169119[ The Only Video You Need to Get Started with Neovim] ( https://youtu.be/m8C0Cq9Uv9o )
170120
171121### FAQ
172122
173- * What should I do if I already have a pre-existing neovim configuration?
123+ * What should I do if I already have a pre-existing Neovim configuration?
174124 * You should back it up and then delete all associated files.
175- * This includes your existing init.lua and the neovim files in ` ~/.local `
125+ * This includes your existing init.lua and the Neovim files in ` ~/.local `
176126 which can be deleted with ` rm -rf ~/.local/share/nvim/ `
177127* Can I keep my existing configuration in parallel to kickstart?
178128 * Yes! You can use [ NVIM_APPNAME] ( https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME ) ` =nvim-NAME `
@@ -186,12 +136,12 @@ return {
186136 `~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim
187137 distribution that you would like to try out.
188138* What if I want to "uninstall" this configuration:
189- * See [lazy.nvim uninstall](https://github.com/ folke/lazy.nvim #-uninstalling) information
139+ * See [lazy.nvim uninstall](https://lazy. folke.io/usage #-uninstalling) information
190140* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files?
191141 * The main purpose of kickstart is to serve as a teaching tool and a reference
192142 configuration that someone can easily use to `git clone` as a basis for their own.
193143 As you progress in learning Neovim and Lua, you might consider splitting `init.lua`
194- into smaller parts. A fork of kickstart that does this while maintaining the
144+ into smaller parts. A fork of kickstart that does this while maintaining the
195145 same functionality is available here:
196146 * [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim)
197147 * Discussions on this topic can be found here:
@@ -230,7 +180,7 @@ run in cmd as **admin**:
230180winget install --accept-source-agreements chocolatey.chocolatey
231181```
232182
233- 2 . install all requirements using choco, exit previous cmd and
183+ 2 . install all requirements using choco, exit the previous cmd and
234184open a new one so that choco path is set, and run in cmd as ** admin** :
235185```
236186choco install -y neovim git ripgrep wget fd unzip gzip mingw make
@@ -243,7 +193,7 @@ wsl --install
243193wsl
244194sudo add-apt-repository ppa:neovim-ppa/unstable -y
245195sudo apt update
246- sudo apt install make gcc ripgrep unzip neovim
196+ sudo apt install make gcc ripgrep unzip git xclip neovim
247197```
248198</details >
249199
@@ -253,23 +203,37 @@ sudo apt install make gcc ripgrep unzip neovim
253203```
254204sudo add-apt-repository ppa:neovim-ppa/unstable -y
255205sudo apt update
256- sudo apt install make gcc ripgrep unzip git neovim
206+ sudo apt install make gcc ripgrep unzip git xclip neovim
257207```
258208</details >
259209<details ><summary >Debian Install Steps</summary >
260210
261211```
262212sudo apt update
263- sudo apt install make gcc ripgrep unzip git
264- echo "deb https://deb.debian.org/debian unstable main" | sudo tee -a /etc/apt/sources.list
265- sudo apt update
266- sudo apt install -t unstable neovim
213+ sudo apt install make gcc ripgrep unzip git xclip curl
214+
215+ # Now we install nvim
216+ curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
217+ sudo rm -rf /opt/nvim-linux-x86_64
218+ sudo mkdir -p /opt/nvim-linux-x86_64
219+ sudo chmod a+rX /opt/nvim-linux-x86_64
220+ sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
221+
222+ # make it available in /usr/local/bin, distro installs to /usr/bin
223+ sudo ln -sf /opt/nvim-linux-x86_64/bin/nvim /usr/local/bin/
267224```
268225</details >
269226<details ><summary >Fedora Install Steps</summary >
270227
271228```
272- sudo dnf install -y gcc make git ripgrep fd-find neovim
229+ sudo dnf install -y gcc make git ripgrep fd-find unzip neovim
230+ ```
231+ </details >
232+
233+ <details ><summary >Arch Install Steps</summary >
234+
235+ ```
236+ sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim
273237```
274238</details >
275239
0 commit comments