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
-------------------------------------------------------------------------------
```
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
119
+
<<<<<<< HEAD
100
120
current plugin status. Hit `q` to close the window.
101
121
102
122
Read through the `init.lua` file in your configuration folder for more
@@ -107,13 +127,90 @@ examples of adding popularly requested plugins.
107
127
### Getting Started
108
128
109
129
[The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o)
130
+
=======
131
+
current plugin status.
132
+
133
+
Read through the `init.lua` file in your configuration folder for more
134
+
information about extending and exploring Neovim.
135
+
136
+
### Getting Started
137
+
138
+
See [Effective Neovim: Instant IDE](https://youtu.be/stqUbv-5u2s), covering the
139
+
previous version. Note: The install via init.lua is outdated, please follow the
140
+
install instructions in this file instead. An updated video is coming soon.
141
+
142
+
### Recommended Steps
143
+
144
+
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo
145
+
(so that you have your own copy that you can modify) and then installing you
146
+
can install to your machine using the methods above.
147
+
148
+
> **NOTE**
149
+
> Your fork's url will be something like this: `https://github.com/<your_github_username>/kickstart.nvim.git`
150
+
151
+
#### Examples of adding popularly requested plugins
152
+
153
+
<details>
154
+
<summary>Adding autopairs</summary>
155
+
156
+
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).
157
+
158
+
In the file: `lua/custom/plugins/autopairs.lua`, add:
159
+
160
+
```lua
161
+
-- File: lua/custom/plugins/autopairs.lua
162
+
163
+
return {
164
+
"windwp/nvim-autopairs",
165
+
-- Optional dependency
166
+
dependencies= { 'hrsh7th/nvim-cmp' },
167
+
config=function()
168
+
require("nvim-autopairs").setup {}
169
+
-- If you want to automatically add `(` after selecting a function or method
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.
185
+
186
+
In the file: `lua/custom/plugins/filetree.lua`, add:
187
+
188
+
```lua
189
+
-- Unless you are still migrating, remove the deprecated commands from v1.x
190
+
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
191
+
192
+
return {
193
+
"nvim-neo-tree/neo-tree.nvim",
194
+
version="*",
195
+
dependencies= {
196
+
"nvim-lua/plenary.nvim",
197
+
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
198
+
"MunifTanjim/nui.nvim",
199
+
},
200
+
config=function ()
201
+
require('neo-tree').setup {}
202
+
end,
203
+
}
204
+
```
205
+
206
+
</details>
207
+
>>>>>>> afa29b0 (rewrite: slimmer, trimmer and more lazy kickstart.nvim (#635))
110
208
111
209
### FAQ
112
210
113
211
* 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/`
212
+
* You should back it up, then delete all files associated with it.
213
+
* This includes your existing init.lua and the neovim files in `~/.local` which can be deleted with `rm -rf ~/.local/share/nvim/`
117
214
* Can I keep my existing configuration in parallel to kickstart?
118
215
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME`
119
216
to maintain multiple configurations. For example, you can install the kickstart
0 commit comments