Skip to content

Commit 1a92260

Browse files
committed
2 parents 6977dcc + 5aeddfd commit 1a92260

File tree

7 files changed

+275
-140
lines changed

7 files changed

+275
-140
lines changed

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
***************************************************************************
2+
**NOTE**
3+
Please verify that the `base repository` above has the intended destination!
4+
Github by default opens Pull Requests against the parent of a forked repository.
5+
If this is your personal fork and you didn't intend to open a PR for contribution
6+
to the original project then adjust the `base repository` accordingly.
7+
**************************************************************************
8+

README.md

Lines changed: 53 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ If you are experiencing issues, please make sure you have the latest versions.
2121

2222
### Install External Dependencies
2323

24-
> **NOTE**
25-
> [Backup](#FAQ) your previous configuration (if any exists)
26-
2724
External Requirements:
2825
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
2926
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
27+
- Clipboard tool (xclip/xsel/win32yank or other depending on platform)
3028
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
3129
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true
3230
- Language Setup:
@@ -38,6 +36,11 @@ External Requirements:
3836
> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes
3937
> and quick install snippets
4038
39+
### Install Kickstart
40+
41+
> **NOTE**
42+
> [Backup](#FAQ) your previous configuration (if any exists)
43+
4144
Neovim's configurations are located under the following paths, depending on your OS:
4245

4346
| OS | PATH |
@@ -46,9 +49,20 @@ Neovim's configurations are located under the following paths, depending on your
4649
| Windows (cmd)| `%userprofile%\AppData\Local\nvim\` |
4750
| Windows (powershell)| `$env:USERPROFILE\AppData\Local\nvim\` |
4851

49-
### Install Kickstart
52+
#### Recommended Step
5053

51-
Clone kickstart.nvim:
54+
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo
55+
so that you have your own copy that you can modify, then install by cloning the
56+
fork to your machine using one of the commands below, depending on your OS.
57+
58+
> **NOTE**
59+
> Your fork's url will be something like this:
60+
> `https://github.com/<your_github_username>/kickstart.nvim.git`
61+
62+
#### Clone kickstart.nvim
63+
> **NOTE**
64+
> If following the recommended step above (i.e., forking the repo), replace
65+
> `nvim-lua` with `<your_github_username>` in the commands below
5266
5367
<details><summary> Linux and Mac </summary>
5468

@@ -83,93 +97,34 @@ nvim
8397
```
8498

8599
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
86-
current plugin status.
100+
current plugin status. Hit `q` to close the window.
87101

88102
Read through the `init.lua` file in your configuration folder for more
89-
information about extending and exploring Neovim.
103+
information about extending and exploring Neovim. That also includes
104+
examples of adding popularly requested plugins.
105+
90106

91107
### Getting Started
92108

93109
[The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o)
94110

95-
### Recommended Steps
96-
97-
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo
98-
(so that you have your own copy that you can modify) and then install. You
99-
can install it on your machine using the methods above.
100-
101-
> **NOTE**
102-
> Your fork's url will be something like this: `https://github.com/<your_github_username>/kickstart.nvim.git`
103-
104-
#### Examples of adding popularly requested plugins
105-
106-
NOTE: You'll need to uncomment the line in the init.lua that turns on loading custom plugins.
107-
108-
<details>
109-
<summary>Adding autopairs</summary>
110-
111-
This will automatically install [windwp/nvim-autopairs](https://github.com/windwp/nvim-autopairs) and enable it on startup. For more information, see documentation for [lazy.nvim](https://github.com/folke/lazy.nvim).
112-
113-
In the file: `lua/custom/plugins/autopairs.lua`, add:
114-
115-
```lua
116-
-- File: lua/custom/plugins/autopairs.lua
117-
118-
return {
119-
"windwp/nvim-autopairs",
120-
-- Optional dependency
121-
dependencies = { 'hrsh7th/nvim-cmp' },
122-
config = function()
123-
require("nvim-autopairs").setup {}
124-
-- If you want to automatically add `(` after selecting a function or method
125-
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
126-
local cmp = require('cmp')
127-
cmp.event:on(
128-
'confirm_done',
129-
cmp_autopairs.on_confirm_done()
130-
)
131-
end,
132-
}
133-
```
134-
135-
</details>
136-
<details>
137-
<summary>Adding a file tree plugin</summary>
138-
139-
This will install the tree plugin and add the command `:Neotree` for you. For more information, see the documentation at [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim).
140-
141-
In the file: `lua/custom/plugins/filetree.lua`, add:
142-
143-
```lua
144-
-- File: lua/custom/plugins/filetree.lua
145-
146-
return {
147-
"nvim-neo-tree/neo-tree.nvim",
148-
version = "*",
149-
dependencies = {
150-
"nvim-lua/plenary.nvim",
151-
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
152-
"MunifTanjim/nui.nvim",
153-
},
154-
config = function ()
155-
require('neo-tree').setup {}
156-
end,
157-
}
158-
```
159-
160-
</details>
161-
162111
### FAQ
163112

164113
* What should I do if I already have a pre-existing neovim configuration?
165114
* You should back it up and then delete all associated files.
166-
* This includes your existing init.lua and the neovim files in `~/.local` which can be deleted with `rm -rf ~/.local/share/nvim/`
115+
* This includes your existing init.lua and the neovim files in `~/.local`
116+
which can be deleted with `rm -rf ~/.local/share/nvim/`
167117
* Can I keep my existing configuration in parallel to kickstart?
168-
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME` to maintain multiple configurations. For example, you can install the kickstart configuration in `~/.config/nvim-kickstart` and create an alias:
118+
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME`
119+
to maintain multiple configurations. For example, you can install the kickstart
120+
configuration in `~/.config/nvim-kickstart` and create an alias:
169121
```
170122
alias nvim-kickstart='NVIM_APPNAME="nvim-kickstart" nvim'
171123
```
172-
When you run Neovim using `nvim-kickstart` alias it will use the alternative config directory and the matching local directory `~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim distribution that you would like to try out.
124+
When you run Neovim using `nvim-kickstart` alias it will use the alternative
125+
config directory and the matching local directory
126+
`~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim
127+
distribution that you would like to try out.
173128
* What if I want to "uninstall" this configuration:
174129
* See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information
175130
* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files?
@@ -228,7 +183,7 @@ wsl --install
228183
wsl
229184
sudo add-apt-repository ppa:neovim-ppa/unstable -y
230185
sudo apt update
231-
sudo apt install make gcc ripgrep unzip neovim
186+
sudo apt install make gcc ripgrep unzip git xclip neovim
232187
```
233188
</details>
234189

@@ -238,23 +193,37 @@ sudo apt install make gcc ripgrep unzip neovim
238193
```
239194
sudo add-apt-repository ppa:neovim-ppa/unstable -y
240195
sudo apt update
241-
sudo apt install make gcc ripgrep unzip neovim
196+
sudo apt install make gcc ripgrep unzip git xclip neovim
242197
```
243198
</details>
244199
<details><summary>Debian Install Steps</summary>
245200

246201
```
247202
sudo apt update
248-
sudo apt install make gcc ripgrep unzip git
249-
echo "deb https://deb.debian.org/debian unstable main" | sudo tee -a /etc/apt/sources.list
250-
sudo apt update
251-
sudo apt install -t unstable neovim
203+
sudo apt install make gcc ripgrep unzip git xclip curl
204+
205+
# Now we install nvim
206+
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
207+
sudo rm -rf /opt/nvim-linux64
208+
sudo mkdir -p /opt/nvim-linux64
209+
sudo chmod a+rX /opt/nvim-linux64
210+
sudo tar -C /opt -xzf nvim-linux64.tar.gz
211+
212+
# make it available in /usr/local/bin, distro installs to /usr/bin
213+
sudo ln -sf /opt/nvim-linux64/bin/nvim /usr/local/bin/
252214
```
253215
</details>
254216
<details><summary>Fedora Install Steps</summary>
255217

256218
```
257-
sudo dnf install -y gcc make git ripgrep fd-find neovim
219+
sudo dnf install -y gcc make git ripgrep fd-find unzip neovim
220+
```
221+
</details>
222+
223+
<details><summary>Arch Install Steps</summary>
224+
225+
```
226+
sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim
258227
```
259228
</details>
260229

0 commit comments

Comments
 (0)