You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rewrite: slimmer, trimmer and more lazy kickstart.nvim (nvim-lua#635)
We've removed over 1/3 of the code that was in kickstart previously,
and more than doubled the amount of comments explaining every line
of code (to the best of my ability).
kickstart now properly uses many of the lazy.nvim config and loading
idioms, which should be really helpful for people moving both to
modular configs, as well as extending the kickstart config in one file.
Additional features:
- Beautiful ascii art
- Added some documentation that explains what is an LSP, what is telescope, etc
- There is now a `:checkhealth` for kickstart, which checks some basic information
and adds useful information for maintainers (for people cloning the repo).
- Improved LSP configuration and tool installation, for easier first time startup
- Changed init.lua ordering, so that it moves from simple options to complicated config
```
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Lua 1 108 404 298
-------------------------------------------------------------------------------
```
* Single-file (with examples of moving to multi-file)
11
-
* Documented
12
-
* Modular
8
+
* Single-file
9
+
* Completely Documented
10
+
11
+
**NOT** a Neovim distribution, but instead a starting point for your configuration.
13
12
14
-
This repo is meant to be used by **YOU** to begin your Neovim journey; remove the things you don't use and add what you miss.
13
+
## Installation
15
14
16
-
Kickstart.nvim targets *only* the latest ['stable'](https://github.com/neovim/neovim/releases/tag/stable) and latest ['nightly'](https://github.com/neovim/neovim/releases/tag/nightly) of Neovim. If you are experiencing issues, please make sure you have the latest versions.
15
+
### Install Neovim
17
16
18
-
Distribution Alternatives:
19
-
-[LazyVim](https://www.lazyvim.org/): A delightful distribution maintained by @folke (the author of lazy.nvim, the package manager used here)
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.
20
+
If you are experiencing issues, please make sure you have the latest versions.
20
21
21
-
### Installation
22
+
### Install External Dependencies
22
23
23
24
> **NOTE**
24
25
> [Backup](#FAQ) your previous configuration (if any exists)
25
26
26
-
Requirements:
27
-
* Make sure to review the readmes of the plugins if you are experiencing errors. In particular:
28
-
*[ripgrep](https://github.com/BurntSushi/ripgrep#installation) is required for multiple [telescope](https://github.com/nvim-telescope/telescope.nvim#suggested-dependencies) pickers.
29
-
* See [Windows Installation](#Windows-Installation) if you have trouble with `telescope-fzf-native`
27
+
External Requirements:
28
+
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
The `Lazy` plugin manager will start automatically on the first run and install the configured plugins - as can be seen in the introduction video. After the installation is complete you can press `q` to close the `Lazy` UI and **you are ready to go**! Next time you run nvim `Lazy` will no longer show up.
80
+
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
81
+
current plugin status.
67
82
68
-
If you would prefer to hide this step and run the plugin sync from the command line, you can use:
69
-
70
-
```sh
71
-
nvim --headless "+Lazy! sync" +qa
72
-
```
83
+
Read through the `init.lua` file in your configuration folder for more
84
+
information about extending and exploring Neovim.
73
85
74
86
### Getting Started
75
87
76
-
See [Effective Neovim: Instant IDE](https://youtu.be/stqUbv-5u2s), covering the previous version. Note: The install via init.lua is outdated, please follow the install instructions in this file instead. An updated video is coming soon.
88
+
See [Effective Neovim: Instant IDE](https://youtu.be/stqUbv-5u2s), covering the
89
+
previous version. Note: The install via init.lua is outdated, please follow the
90
+
install instructions in this file instead. An updated video is coming soon.
77
91
78
92
### Recommended Steps
79
93
80
-
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo (so that you have your own copy that you can modify) and then installing you can install to your machine using the methods above.
94
+
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo
95
+
(so that you have your own copy that you can modify) and then installing you
96
+
can install to your machine using the methods above.
81
97
82
98
> **NOTE**
83
99
> Your fork's url will be something like this: `https://github.com/<your_github_username>/kickstart.nvim.git`
84
100
85
-
### Configuration And Extension
86
-
87
-
* Inside of your copy, feel free to modify any file you like! It's your copy!
88
-
* Feel free to change any of the default options in `init.lua` to better suit your needs.
89
-
* For adding plugins, there are 3 primary options:
90
-
* Add new configuration in `lua/custom/plugins/*` files, which will be auto sourced using `lazy.nvim` (uncomment the line importing the `custom/plugins` directory in the `init.lua` file to enable this)
91
-
* Modify `init.lua` with additional plugins.
92
-
* Include the `lua/kickstart/plugins/*` files in your configuration.
101
+
#### Examples of adding popularly requested plugins
93
102
94
-
You can also merge updates/changes from the repo back into your fork, to keep up-to-date with any changes for the default configuration.
103
+
<details>
104
+
<summary>Adding autopairs</summary>
95
105
96
-
#### Example: Adding an autopairs plugin
106
+
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).
97
107
98
108
In the file: `lua/custom/plugins/autopairs.lua`, add:
99
109
@@ -117,10 +127,11 @@ return {
117
127
}
118
128
```
119
129
130
+
</details>
131
+
<details>
132
+
<summary>Adding a file tree plugin</summary>
120
133
121
-
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).
122
-
123
-
#### Example: Adding a file tree plugin
134
+
This will install the tree plugin and add the command `:Neotree` for you. You can explore the documentation at [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) for more information.
124
135
125
136
In the file: `lua/custom/plugins/filetree.lua`, add:
126
137
@@ -142,23 +153,13 @@ return {
142
153
}
143
154
```
144
155
145
-
This will install the tree plugin and add the command `:Neotree` for you. You can explore the documentation at [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) for more information.
146
-
147
-
### Contribution
148
-
149
-
Pull-requests are welcome. The goal of this repo is not to create a Neovim configuration framework, but to offer a starting template that shows, by example, available features in Neovim. Some things that will not be included:
150
-
151
-
* Custom language server configuration (null-ls templates)
152
-
* Theming beyond a default colorscheme necessary for LSP highlight groups
153
-
154
-
Each PR, especially those which increase the line count, should have a description as to why the PR is necessary.
156
+
</details>
155
157
156
158
### FAQ
157
159
158
160
* What should I do if I already have a pre-existing neovim configuration?
159
161
* You should back it up, then delete all files associated with it.
160
162
* This includes your existing init.lua and the neovim files in `~/.local` which can be deleted with `rm -rf ~/.local/share/nvim/`
161
-
* You may also want to look at the [migration guide for lazy.nvim](https://github.com/folke/lazy.nvim#-migration-guide)
162
163
* Can I keep my existing configuration in parallel to kickstart?
163
164
* 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:
0 commit comments