|
1 |
| -# kickstart.nvim |
| 1 | +# KickInTheHead.nvim |
2 | 2 |
|
3 | 3 | ## Introduction
|
4 | 4 |
|
5 |
| -A starting point for Neovim that is: |
| 5 | +### A Kitchen Sink personal configuration for Neovim that is: |
6 | 6 |
|
7 |
| -* Small |
8 |
| -* Single-file |
9 |
| -* Completely Documented |
| 7 | +- Originally forked from Kickstart.nvim |
| 8 | +- NOT Small |
| 9 | +- NOT Single-file |
| 10 | +- PARTIALLY Documented |
10 | 11 |
|
11 |
| -**NOT** a Neovim distribution, but instead a starting point for your configuration. |
| 12 | +*NOT* a Neovim distribution, but instead my attempt at creating my favorite frankenstein configuration for my own personal use. |
| 13 | +You're welcome to take it and do as you will, over even try to contribute back (if ain't got no other habits, why not?) |
12 | 14 |
|
13 | 15 | ## Installation
|
14 | 16 |
|
15 | 17 | ### Install Neovim
|
16 | 18 |
|
17 |
| -Kickstart.nvim targets *only* the latest |
18 |
| -['stable'](https://github.com/neovim/neovim/releases/tag/stable) and latest |
19 |
| -['nightly'](https://github.com/neovim/neovim/releases/tag/nightly) of Neovim. |
| 19 | +*KickInTheHead.nvim* targets only the latest |
| 20 | +'stable' and latest |
| 21 | +'nightly' of Neovim. |
20 | 22 | If you are experiencing issues, please make sure you have the latest versions.
|
21 | 23 |
|
22 | 24 | ### Install External Dependencies
|
23 | 25 |
|
24 |
| -External Requirements: |
25 |
| -- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`) |
26 |
| -- [ripgrep](https://github.com/BurntSushi/ripgrep#installation) |
| 26 | +#### External Requirements: |
| 27 | + |
| 28 | +- Basic utils: git, make, unzip, C Compiler (gcc) |
| 29 | +- ripgrep |
27 | 30 | - Clipboard tool (xclip/xsel/win32yank or other depending on platform)
|
28 |
| -- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons |
29 |
| - - if you have it set `vim.g.have_nerd_font` in `init.lua` to true |
| 31 | +- A Nerd Font: optional, provides various icons |
| 32 | + - if you have it set vim.g.have_nerd_font in init.lua to true |
30 | 33 | - Language Setup:
|
31 |
| - - If want to write Typescript, you need `npm` |
32 |
| - - If want to write Golang, you will need `go` |
| 34 | + - If want to write Typescript, you need npm |
| 35 | + - If want to write Golang, you will need go |
33 | 36 | - etc.
|
34 | 37 |
|
35 |
| -> **NOTE** |
36 |
| -> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes |
37 |
| -> and quick install snippets |
| 38 | +*NOTE* |
| 39 | +See Install Recipes for additional Windows and Linux specific notes |
| 40 | +and quick install snippets |
38 | 41 |
|
39 |
| -### Install Kickstart |
| 42 | +### Install KickInTheHead |
40 | 43 |
|
41 |
| -> **NOTE** |
42 |
| -> [Backup](#FAQ) your previous configuration (if any exists) |
| 44 | +*NOTE* |
| 45 | +Backup your previous configuration (if any exists) |
43 | 46 |
|
44 | 47 | Neovim's configurations are located under the following paths, depending on your OS:
|
45 | 48 |
|
46 |
| -| OS | PATH | |
47 |
| -| :- | :--- | |
48 |
| -| Linux, MacOS | `$XDG_CONFIG_HOME/nvim`, `~/.config/nvim` | |
49 |
| -| Windows (cmd)| `%userprofile%\AppData\Local\nvim\` | |
50 |
| -| Windows (powershell)| `$env:USERPROFILE\AppData\Local\nvim\` | |
| 49 | + OS PATH |
| 50 | + Linux, MacOS $XDG_CONFIG_HOME/nvim, ~/.config/nvim |
| 51 | + Windows (cmd) %userprofile%\AppData\Local\nvim\ |
| 52 | + Windows (powershell) $env:USERPROFILE\AppData\Local\nvim\ |
51 | 53 |
|
52 |
| -#### Recommended Step |
| 54 | +Recommended Step |
53 | 55 |
|
54 |
| -[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo |
| 56 | +Fork this repo |
55 | 57 | so that you have your own copy that you can modify, then install by cloning the
|
56 | 58 | fork to your machine using one of the commands below, depending on your OS.
|
57 | 59 |
|
58 |
| -> **NOTE** |
59 |
| -> Your fork's url will be something like this: |
60 |
| -> `https://github.com/<your_github_username>/kickstart.nvim.git` |
| 60 | +*NOTE* |
| 61 | +Your fork's url will be something like this: |
| 62 | +https://github.com/<your_github_username>/kickinthehead.nvim.git |
| 63 | + |
| 64 | +Clone KickInTheHead.nvim |
61 | 65 |
|
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 |
| 66 | +*NOTE* |
| 67 | +If following the recommended step above (i.e., forking the repo), replace |
| 68 | +petergi with <your_github_username> in the commands below |
66 | 69 |
|
67 | 70 | <details><summary> Linux and Mac </summary>
|
68 | 71 |
|
69 |
| -```sh |
70 |
| -git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim |
71 |
| -``` |
| 72 | + git clone https://github.com/petergi/KickInTheHead.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim |
72 | 73 |
|
73 | 74 | </details>
|
74 | 75 |
|
75 | 76 | <details><summary> Windows </summary>
|
76 | 77 |
|
77 |
| -If you're using `cmd.exe`: |
| 78 | +If you're using cmd.exe: |
78 | 79 |
|
79 |
| -``` |
80 |
| -git clone https://github.com/nvim-lua/kickstart.nvim.git %userprofile%\AppData\Local\nvim\ |
81 |
| -``` |
| 80 | + git clone https://github.com/petergi/KickInTheHead.nvim.git %userprofile%\AppData\Local\nvim\ |
82 | 81 |
|
83 |
| -If you're using `powershell.exe` |
| 82 | +If you're using powershell.exe |
84 | 83 |
|
85 |
| -``` |
86 |
| -git clone https://github.com/nvim-lua/kickstart.nvim.git $env:USERPROFILE\AppData\Local\nvim\ |
87 |
| -``` |
| 84 | + git clone https://github.com/petergi/KickInTheHead.nvim.git $env:USERPROFILE\AppData\Local\nvim\ |
88 | 85 |
|
89 | 86 | </details>
|
90 | 87 |
|
91 |
| -### Post Installation |
| 88 | +## Post Installation |
92 | 89 |
|
93 |
| -Start Neovim |
| 90 | +### Start Neovim |
94 | 91 |
|
95 |
| -```sh |
96 |
| -nvim |
97 |
| -``` |
| 92 | + `nvim` |
98 | 93 |
|
99 |
| -That's it! Lazy will install all the plugins you have. Use `:Lazy` to view |
100 |
| -current plugin status. Hit `q` to close the window. |
| 94 | +That's it! Lazy will install all the plugins you have configured. Use :Lazy to view |
| 95 | +current plugin status. Hit q to close the window. |
101 | 96 |
|
102 |
| -Read through the `init.lua` file in your configuration folder for more |
| 97 | +Read through the CONFIGUREME.md file in your configuration folder for more |
103 | 98 | information about extending and exploring Neovim. That also includes
|
104 | 99 | examples of adding popularly requested plugins.
|
105 | 100 |
|
| 101 | +## Getting Started |
| 102 | + |
| 103 | +The Only Video You Need to Get Started with Neovim |
106 | 104 |
|
107 |
| -### Getting Started |
108 |
| - |
109 |
| -[The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o) |
110 |
| - |
111 |
| -### FAQ |
112 |
| - |
113 |
| -* What should I do if I already have a pre-existing neovim configuration? |
114 |
| - * You should back it up and then delete all associated files. |
115 |
| - * This includes your existing init.lua and the neovim files in `~/.local` |
116 |
| - which can be deleted with `rm -rf ~/.local/share/nvim/` |
117 |
| -* Can I keep my existing configuration in parallel to kickstart? |
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: |
121 |
| - ``` |
122 |
| - alias nvim-kickstart='NVIM_APPNAME="nvim-kickstart" nvim' |
123 |
| - ``` |
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. |
128 |
| -* What if I want to "uninstall" this configuration: |
129 |
| - * See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information |
130 |
| -* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files? |
131 |
| - * The main purpose of kickstart is to serve as a teaching tool and a reference |
132 |
| - configuration that someone can easily use to `git clone` as a basis for their own. |
133 |
| - As you progress in learning Neovim and Lua, you might consider splitting `init.lua` |
134 |
| - into smaller parts. A fork of kickstart that does this while maintaining the |
135 |
| - same functionality is available here: |
136 |
| - * [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim) |
137 |
| - * Discussions on this topic can be found here: |
138 |
| - * [Restructure the configuration](https://github.com/nvim-lua/kickstart.nvim/issues/218) |
139 |
| - * [Reorganize init.lua into a multi-file setup](https://github.com/nvim-lua/kickstart.nvim/pull/473) |
140 |
| -
|
141 |
| -### Install Recipes |
| 105 | +## Install Recipes |
142 | 106 |
|
143 | 107 | Below you can find OS specific install instructions for Neovim and dependencies.
|
144 | 108 |
|
145 |
| -After installing all the dependencies continue with the [Install Kickstart](#Install-Kickstart) step. |
| 109 | +After installing all the dependencies continue with the Install KickInTheHead step. |
146 | 110 |
|
147 |
| -#### Windows Installation |
| 111 | +### Windows Installation |
148 | 112 |
|
149 | 113 | <details><summary>Windows with Microsoft C++ Build Tools and CMake</summary>
|
150 | 114 | Installation may require installing build tools and updating the run command for `telescope-fzf-native`
|
151 | 115 |
|
152 |
| -See `telescope-fzf-native` documentation for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation) |
| 116 | +See telescope-fzf-native documentation for more details |
153 | 117 |
|
154 | 118 | This requires:
|
155 | 119 |
|
156 | 120 | - Install CMake and the Microsoft C++ Build Tools on Windows
|
157 | 121 |
|
158 |
| -```lua |
159 |
| -{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' } |
160 |
| -``` |
| 122 | + {'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' } |
| 123 | + |
161 | 124 | </details>
|
| 125 | + |
162 | 126 | <details><summary>Windows with gcc/make using chocolatey</summary>
|
163 | 127 | Alternatively, one can install gcc and make which don't require changing the config,
|
164 | 128 | the easiest way is to use choco:
|
165 | 129 |
|
166 |
| -1. install [chocolatey](https://chocolatey.org/install) |
| 130 | +1. install chocolatey |
167 | 131 | either follow the instructions on the page or use winget,
|
168 |
| -run in cmd as **admin**: |
169 |
| -``` |
170 |
| -winget install --accept-source-agreements chocolatey.chocolatey |
171 |
| -``` |
| 132 | +run in cmd as admin: |
| 133 | + |
| 134 | + winget install --accept-source-agreements chocolatey.chocolatey |
172 | 135 |
|
173 | 136 | 2. install all requirements using choco, exit previous cmd and
|
174 |
| -open a new one so that choco path is set, and run in cmd as **admin**: |
175 |
| -``` |
176 |
| -choco install -y neovim git ripgrep wget fd unzip gzip mingw make |
177 |
| -``` |
| 137 | +open a new one so that choco path is set, and run in cmd as admin: |
| 138 | + |
| 139 | + choco install -y neovim git ripgrep wget fd unzip gzip mingw make |
| 140 | + |
178 | 141 | </details>
|
| 142 | + |
179 | 143 | <details><summary>WSL (Windows Subsystem for Linux)</summary>
|
180 | 144 |
|
181 |
| -``` |
182 |
| -wsl --install |
183 |
| -wsl |
184 |
| -sudo add-apt-repository ppa:neovim-ppa/unstable -y |
185 |
| -sudo apt update |
186 |
| -sudo apt install make gcc ripgrep unzip git xclip neovim |
187 |
| -``` |
| 145 | + wsl --install |
| 146 | + wsl |
| 147 | + sudo add-apt-repository ppa:neovim-ppa/unstable -y |
| 148 | + sudo apt update |
| 149 | + sudo apt install make gcc ripgrep unzip git xclip neovim |
| 150 | + |
188 | 151 | </details>
|
189 | 152 |
|
190 |
| -#### Linux Install |
| 153 | +### Linux Install |
| 154 | + |
191 | 155 | <details><summary>Ubuntu Install Steps</summary>
|
192 | 156 |
|
193 |
| -``` |
194 |
| -sudo add-apt-repository ppa:neovim-ppa/unstable -y |
195 |
| -sudo apt update |
196 |
| -sudo apt install make gcc ripgrep unzip git xclip neovim |
197 |
| -``` |
| 157 | + sudo add-apt-repository ppa:neovim-ppa/unstable -y |
| 158 | + sudo apt update |
| 159 | + sudo apt install make gcc ripgrep unzip git xclip neovim |
| 160 | + |
198 | 161 | </details>
|
199 |
| -<details><summary>Debian Install Steps</summary> |
200 | 162 |
|
201 |
| -``` |
202 |
| -sudo apt update |
203 |
| -sudo apt install make gcc ripgrep unzip git xclip curl |
| 163 | +<details><summary>Debian Install Steps</summary> |
204 | 164 |
|
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 |
| 165 | + sudo apt update |
| 166 | + sudo apt install make gcc ripgrep unzip git xclip curl |
| 167 | + |
| 168 | + # Now we install nvim |
| 169 | + curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz |
| 170 | + sudo rm -rf /opt/nvim-linux64 |
| 171 | + sudo mkdir -p /opt/nvim-linux64 |
| 172 | + sudo chmod a+rX /opt/nvim-linux64 |
| 173 | + sudo tar -C /opt -xzf nvim-linux64.tar.gz |
| 174 | + |
| 175 | + # make it available in /usr/local/bin, distro installs to /usr/bin |
| 176 | + sudo ln -sf /opt/nvim-linux64/bin/nvim /usr/local/bin/ |
211 | 177 |
|
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/ |
214 |
| -``` |
215 | 178 | </details>
|
| 179 | + |
216 | 180 | <details><summary>Fedora Install Steps</summary>
|
217 | 181 |
|
218 |
| -``` |
219 |
| -sudo dnf install -y gcc make git ripgrep fd-find unzip neovim |
220 |
| -``` |
| 182 | + sudo dnf install -y gcc make git ripgrep fd-find unzip neovim |
| 183 | + |
221 | 184 | </details>
|
222 | 185 |
|
223 | 186 | <details><summary>Arch Install Steps</summary>
|
224 | 187 |
|
225 |
| -``` |
226 |
| -sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim |
227 |
| -``` |
228 |
| -</details> |
| 188 | + sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim |
229 | 189 |
|
| 190 | +</details> |
0 commit comments