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
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.
67
67
68
-
If you would prefer to hide this step and run the plugin sync from the command line, you can use:
68
+
Read through the `init.lua` file in your configuration folder for more
69
+
information about extending and exploring Neovim. That also includes
70
+
examples of adding popularly requested plugins.
69
71
70
72
```sh
71
73
nvim --headless "+Lazy! sync" +qa
72
74
```
73
75
74
76
### Getting Started
75
77
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.
77
-
78
-
### Recommended Steps
79
-
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.
81
-
82
-
> **NOTE**
83
-
> Your fork's url will be something like this: `https://github.com/<your_github_username>/kickstart.nvim.git`
84
-
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.
93
-
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.
95
-
96
-
#### Example: Adding an autopairs plugin
97
-
98
-
In the file: `lua/custom/plugins/autopairs.lua`, add:
99
-
100
-
```lua
101
-
-- File: lua/custom/plugins/autopairs.lua
102
-
103
-
return {
104
-
"windwp/nvim-autopairs",
105
-
-- Optional dependency
106
-
dependencies= { 'hrsh7th/nvim-cmp' },
107
-
config=function()
108
-
require("nvim-autopairs").setup {}
109
-
-- If you want to automatically add `(` after selecting a function or method
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
124
-
125
-
In the file: `lua/custom/plugins/filetree.lua`, add:
126
-
127
-
```lua
128
-
-- Unless you are still migrating, remove the deprecated commands from v1.x
129
-
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
130
-
131
-
return {
132
-
"nvim-neo-tree/neo-tree.nvim",
133
-
version="*",
134
-
dependencies= {
135
-
"nvim-lua/plenary.nvim",
136
-
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
137
-
"MunifTanjim/nui.nvim",
138
-
},
139
-
config=function ()
140
-
require('neo-tree').setup {}
141
-
end,
142
-
}
143
-
```
144
-
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
78
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
79
151
80
* Custom language server configuration (null-ls templates)
@@ -166,7 +95,7 @@ Each PR, especially those which increase the line count, should have a descripti
166
95
```
167
96
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.
168
97
* What if I want to "uninstall" this configuration:
169
-
* See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information
98
+
* See [lazy.nvim uninstall](https://lazy.folke.io/usage#-uninstalling) information
170
99
* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files?
171
100
* The main purpose of kickstart is to serve as a teaching tool and a reference
172
101
configuration that someone can easily `git clone` as a basis for their own.
0 commit comments