Skip to content

Commit f031fa4

Browse files
authored
Merge pull request #319 from mech-a/readme
Remove "after/" reference in README and other clean-up items
2 parents 468c255 + 8d97b11 commit f031fa4

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ Distribution Alternatives:
2828
`%userprofile%\AppData\Local\nvim-data\` (Windows)
2929
* Ensure your extraction method did not extract with a parent folder. For example in ~/.config/nvim you should have init.lua not another folder called kickstart.nvim.
3030

31-
### GIT Clone Installation
31+
### Git Clone Installation
3232
* From a terminal cd/dir to:
3333
`~/.config/nvim` (Linux)
3434
`~/.config/nvim` (MacOS)
3535
`%userprofile%\AppData\Local\nvim\` (Windows)
3636

37-
* run: `git clone https://github.com/nvim-lua/kickstart.nvim.git ~/.config/nvim` OR: gh repo clone nvim-lua/kickstart.nvim
38-
* Run neovim (from terminal or shortcut) and allow the kickstart process to download files and set up the basics.
39-
* Once the setup is complete restart Neovim.
37+
* run: `git clone https://github.com/nvim-lua/kickstart.nvim.git ~/.config/nvim` OR: `gh repo clone nvim-lua/kickstart.nvim`
38+
* Run Neovim (from terminal or shortcut) and allow lazy.nvim to download files and set up the basics.
39+
* Once the setup is complete, restart Neovim.
4040
* **You're ready to go!**
4141

4242
* (Recommended/Optional) Fork this repo (so that you have your own copy that you can modify).
@@ -46,17 +46,18 @@ Distribution Alternatives:
4646
Additional system requirements:
4747
- Make sure to review the readmes of the plugins if you are experiencing errors. In particular:
4848
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation) is required for multiple [telescope](https://github.com/nvim-telescope/telescope.nvim#suggested-dependencies) pickers.
49-
- See as well [Windows Installation](#Windows-Installation)
49+
- See [Windows Installation](#Windows-Installation) if you have trouble with `telescope-fzf-native`
5050

5151
### Configuration And Extension
5252

53-
* Inside of your fork, feel free to modify any file you like! It's your fork!
54-
* Then there are two primary configuration options available:
55-
* Include the `lua/kickstart/plugins/*` files in your configuration.
53+
* Inside of your copy, feel free to modify any file you like! It's your copy!
54+
* Feel free to change any of the default options in `init.lua` to better suit your needs.
55+
* For adding plugins, there are 3 primary options:
5656
* Add new configuration in `lua/custom/plugins/*` files, which will be auto sourced using `lazy.nvim`
57-
* NOTE: To enable this, you need to uncomment `{ import = 'custom.plugins' }` in your `init.lua`
57+
* Modify `init.lua` with additional plugins.
58+
* Include the `lua/kickstart/plugins/*` files in your configuration.
5859

59-
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
60+
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.
6061

6162
#### Example: Adding an autopairs plugin
6263

@@ -67,14 +68,23 @@ In the file: `lua/custom/plugins/autopairs.lua`, add:
6768

6869
return {
6970
"windwp/nvim-autopairs",
71+
-- Optional dependency
72+
dependencies = { 'hrsh7th/nvim-cmp' },
7073
config = function()
7174
require("nvim-autopairs").setup {}
75+
-- If you want to automatically add `(` after selecting a function or method
76+
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
77+
local cmp = require('cmp')
78+
cmp.event:on(
79+
'confirm_done',
80+
cmp_autopairs.on_confirm_done()
81+
)
7282
end,
7383
}
7484
```
7585

7686

77-
This will automatically install `nvim-autopairs` and enable it on startup. For more information, see documentation for [lazy.nvim](https://github.com/folke/lazy.nvim).
87+
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).
7888

7989
#### Example: Adding a file tree plugin
8090

@@ -100,16 +110,6 @@ return {
100110

101111
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.
102112

103-
#### Example: Adding a file to change default options
104-
105-
To change default options, you can add a file in the `/after/plugin/` folder (see `:help load-plugins`) to include your own options, keymaps, autogroups, and more. The following is an example `defaults.lua` file (located at `$HOME/.config/nvim/after/plugin/defaults.lua`).
106-
107-
```lua
108-
vim.opt.relativenumber = true
109-
110-
vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc = '[S]earch [R]esume' })
111-
```
112-
113113
### Contribution
114114

115115
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:

init.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
Kickstart.nvim is *not* a distribution.
88
99
Kickstart.nvim is a template for your own configuration.
10-
The goal is that you can read every line of code, top-to-bottom, and understand
11-
what your configuration is doing.
10+
The goal is that you can read every line of code, top-to-bottom, understand
11+
what your configuration is doing, and modify it to suit your needs.
1212
1313
Once you've done that, you should start exploring, configuring and tinkering to
1414
explore Neovim!
@@ -202,14 +202,12 @@ require('lazy').setup({
202202
-- up-to-date with whatever is in the kickstart repo.
203203
--
204204
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
205-
--
206-
-- An additional note is that if you only copied in the `init.lua`, you can just comment this line
207-
-- to get rid of the warning telling you that there are not plugins in `lua/custom/plugins/`.
208205
{ import = 'custom.plugins' },
209206
}, {})
210207

211208
-- [[ Setting options ]]
212209
-- See `:help vim.o`
210+
-- NOTE: You can change these options as you wish!
213211

214212
-- Set highlight on search
215213
vim.o.hlsearch = false

0 commit comments

Comments
 (0)