Skip to content

Commit f99b1c3

Browse files
authored
Merge branch 'nvim-lua:master' into master
2 parents 50cce64 + 5bdde24 commit f99b1c3

File tree

4 files changed

+43
-27
lines changed

4 files changed

+43
-27
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ assignees: ''
99

1010
<!-- Any bug report not following this template will be immediately closed. Thanks -->
1111

12+
## Before Reporting an Issue
13+
- I have read the kickstart.nvim README.md.
14+
- I have read the appropriate plugin's documentation.
15+
- I have searched that this issue has not been reported before.
16+
17+
- [ ] **By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.**
18+
1219
## Describe the bug
1320
<!-- A clear and concise description of what the bug is. -->
1421

@@ -18,8 +25,8 @@ assignees: ''
1825

1926
## Desktop
2027
<!-- please complete the following information. -->
21-
- OS:
22-
- Terminal:
28+
- OS:
29+
- Terminal:
2330

2431
## Neovim Version
2532
<!-- Output of running `:version` from inside of neovim. -->

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you are experiencing issues, please make sure you have the latest versions.
2424
External Requirements:
2525
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
2626
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
27-
- Clipboard tool (xclip/xsel/win32yank or other depending on platform)
27+
- Clipboard tool (xclip/xsel/win32yank or other depending on the platform)
2828
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
2929
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true
3030
- Language Setup:
@@ -56,12 +56,12 @@ so that you have your own copy that you can modify, then install by cloning the
5656
fork to your machine using one of the commands below, depending on your OS.
5757

5858
> **NOTE**
59-
> Your fork's url will be something like this:
59+
> Your fork's URL will be something like this:
6060
> `https://github.com/<your_github_username>/kickstart.nvim.git`
6161
6262
You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file
6363
too - it's ignored in the kickstart repo to make maintenance easier, but it's
64-
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
64+
[recommended to track it in version control](https://lazy.folke.io/usage/lockfile).
6565

6666
#### Clone kickstart.nvim
6767
> **NOTE**
@@ -101,22 +101,27 @@ nvim
101101
```
102102

103103
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
104-
current plugin status. Hit `q` to close the window.
104+
the current plugin status. Hit `q` to close the window.
105+
106+
#### Read The Friendly Documentation
105107

106108
Read through the `init.lua` file in your configuration folder for more
107109
information about extending and exploring Neovim. That also includes
108110
examples of adding popularly requested plugins.
109111

112+
> [!NOTE]
113+
> For more information about a particular plugin check its repository's documentation.
114+
110115

111116
### Getting Started
112117

113118
[The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o)
114119

115120
### FAQ
116121

117-
* What should I do if I already have a pre-existing neovim configuration?
122+
* What should I do if I already have a pre-existing Neovim configuration?
118123
* You should back it up and then delete all associated files.
119-
* This includes your existing init.lua and the neovim files in `~/.local`
124+
* This includes your existing init.lua and the Neovim files in `~/.local`
120125
which can be deleted with `rm -rf ~/.local/share/nvim/`
121126
* Can I keep my existing configuration in parallel to kickstart?
122127
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME`
@@ -135,7 +140,7 @@ examples of adding popularly requested plugins.
135140
* The main purpose of kickstart is to serve as a teaching tool and a reference
136141
configuration that someone can easily use to `git clone` as a basis for their own.
137142
As you progress in learning Neovim and Lua, you might consider splitting `init.lua`
138-
into smaller parts. A fork of kickstart that does this while maintaining the
143+
into smaller parts. A fork of kickstart that does this while maintaining the
139144
same functionality is available here:
140145
* [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim)
141146
* Discussions on this topic can be found here:
@@ -174,7 +179,7 @@ run in cmd as **admin**:
174179
winget install --accept-source-agreements chocolatey.chocolatey
175180
```
176181

177-
2. install all requirements using choco, exit previous cmd and
182+
2. install all requirements using choco, exit the previous cmd and
178183
open a new one so that choco path is set, and run in cmd as **admin**:
179184
```
180185
choco install -y neovim git ripgrep wget fd unzip gzip mingw make

init.lua

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ vim.opt.signcolumn = 'yes'
136136
vim.opt.updatetime = 250
137137

138138
-- Decrease mapped sequence wait time
139-
-- Displays which-key popup sooner
140139
vim.opt.timeoutlen = 300
141140

142141
-- Configure how new splits should be opened
@@ -268,14 +267,16 @@ require('lazy').setup({
268267
-- which loads which-key before all the UI elements are loaded. Events can be
269268
-- normal autocommands events (`:help autocmd-events`).
270269
--
271-
-- Then, because we use the `config` key, the configuration only runs
272-
-- after the plugin has been loaded:
273-
-- config = function() ... end
270+
-- Then, because we use the `opts` key (recommended), the configuration runs
271+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
274272

275273
{ -- Useful plugin to show you pending keybinds.
276274
'folke/which-key.nvim',
277275
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
278276
opts = {
277+
-- delay between pressing a key and opening which-key (milliseconds)
278+
-- this setting is independent of vim.opt.timeoutlen
279+
delay = 0,
279280
icons = {
280281
-- set icon mappings to true if you have a Nerd Font
281282
mappings = vim.g.have_nerd_font,
@@ -448,22 +449,22 @@ require('lazy').setup({
448449
opts = {
449450
library = {
450451
-- Load luvit types when the `vim.uv` word is found
451-
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
452+
{ path = '${3rd}/luv/library', words = { 'vim%.uv' } },
452453
},
453454
},
454455
},
455-
{ 'Bilal2453/luvit-meta', lazy = true },
456456
{
457457
-- Main LSP Configuration
458458
'neovim/nvim-lspconfig',
459459
dependencies = {
460460
-- Automatically install LSPs and related tools to stdpath for Neovim
461-
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
461+
-- Mason must be loaded before its dependents so we need to set it up here.
462+
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
463+
{ 'williamboman/mason.nvim', opts = {} },
462464
'williamboman/mason-lspconfig.nvim',
463465
'WhoIsSethDaniel/mason-tool-installer.nvim',
464466

465467
-- Useful status updates for LSP.
466-
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
467468
{ 'j-hui/fidget.nvim', opts = {} },
468469

469470
-- Allows extra capabilities provided by nvim-cmp
@@ -637,8 +638,8 @@ require('lazy').setup({
637638
--
638639

639640
lua_ls = {
640-
-- cmd = {...},
641-
-- filetypes = { ...},
641+
-- cmd = { ... },
642+
-- filetypes = { ... },
642643
-- capabilities = {},
643644
settings = {
644645
Lua = {
@@ -653,13 +654,16 @@ require('lazy').setup({
653654
}
654655

655656
-- Ensure the servers and tools above are installed
656-
-- To check the current status of installed tools and/or manually install
657-
-- other tools, you can run
657+
--
658+
-- To check the current status of installed tools and/or manually install
659+
-- other tools, you can run
658660
-- :Mason
659661
--
660-
-- You can press `g?` for help in this menu.
661-
require('mason').setup()
662-
662+
-- You can press `g?` for help in this menu.
663+
--
664+
-- `mason` had to be setup earlier: to configure its options see the
665+
-- `dependencies` table for `nvim-lspconfig` above.
666+
--
663667
-- You can add other tools here that you want Mason to install
664668
-- for you, so that they are available from within Neovim.
665669
local ensure_installed = vim.tbl_keys(servers or {})

lua/kickstart/plugins/gitsigns.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ return {
3636
-- visual mode
3737
map('v', '<leader>hs', function()
3838
gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
39-
end, { desc = 'stage git hunk' })
39+
end, { desc = 'git [s]tage hunk' })
4040
map('v', '<leader>hr', function()
4141
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
42-
end, { desc = 'reset git hunk' })
42+
end, { desc = 'git [r]eset hunk' })
4343
-- normal mode
4444
map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
4545
map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })

0 commit comments

Comments
 (0)