Commit Graph

219 Commits

Author SHA1 Message Date
orip 50a36d3faa Raise the minimum nvim version to 0.11 2025-07-11 16:05:33 +03:00
Ori Perry 992db9c466
Merge pull request #11 from rivenirvana/init-key-docs
docs: Add documentation for lazy's `init` key
2025-07-04 17:47:55 +03:00
orip 1b3bb13278 Fix formatting 2025-07-04 17:32:28 +03:00
Ori Perry 166d8b3e80
Merge pull request #8 from oriori1703/feature/collapse-functions
Feature/collapse functions
2025-07-04 17:31:51 +03:00
Ori Perry 67c23b3398
Merge pull request #9 from oriori1703/feature/type-hints
Add type hints to plugin options where possible
2025-07-04 17:29:11 +03:00
orip f5f085f9c8 Undo the formatting changes from https://github.com/oriori1703/kickstart-modular.nvim/pull/7 2025-07-04 17:11:10 +03:00
Ori Perry d20b4c5436
Merge pull request #7 from kartikvashistha/feat/0.11-lsp
Feat/0.11 lsp
2025-07-04 17:08:43 +03:00
Ori Perry 0ecaa81c4d
Merge pull request #6 from guru245/feature/toggle_diagnostics
feat: add toggle to show/hide diagnostics
2025-07-04 17:08:21 +03:00
Ori Perry 09d58dc946
Merge pull request #5 from ronandalton/fix-unnecessary-diagnostic-config
fix(diagnostic): remove unnecessary config lines
2025-07-04 17:08:06 +03:00
Ori Perry d147077b35
Merge pull request #3 from FrancescElies/cesc/visual-grep-string
feat(grep-string): works with visual selection too
2025-07-04 17:07:53 +03:00
Ori Perry 87bbd7909b
Merge pull request #2 from 5brian/virtual-lines
feat(diagnostics): Add `virtual_lines` for discoverability
2025-07-04 17:07:32 +03:00
orip 5962064255 Add type hints to plugin options where possible
This could help beginners to get autocompletion, catch mistakes earlier,
and allow them to skip the docs for simple configs.

This is not perfect because a lot of the plugins type all of their keys
as required, even though they have defaults, but this is good enough.
2025-07-04 16:16:22 +03:00
orip 5ad57de208 Collapse small functions when formatting
This would allow to write more concise and easy to understands keybinds in
the following commit
2025-07-04 16:08:08 +03:00
Sangho Lee 488feb5853 feat: add toggle to show/hide diagnostics 2025-06-24 22:36:05 +09:00
Ronan Dalton 7c31d2ccf8 fix(diagnostic): remove unnecessary config lines
The following lines do nothing and can be removed:

 format = function(diagnostic)
   local diagnostic_message = {
     [vim.diagnostic.severity.ERROR] = diagnostic.message,
     [vim.diagnostic.severity.WARN] = diagnostic.message,
     [vim.diagnostic.severity.INFO] = diagnostic.message,
     [vim.diagnostic.severity.HINT] = diagnostic.message,
   }
   return diagnostic_message[diagnostic.severity]
 end,

The following line causes diagnostics which aren't of severity level
error to not have the specific text area underlined. This is less useful
than the default of showing underlines for all diagnostic levels, so
remove this line as well:

  underline = { severity = vim.diagnostic.severity.ERROR },
2025-06-21 13:03:39 +12:00
Francesc Elies b4c8a78d45 feat(grep-string): works with visual selection too 2025-06-16 23:45:57 +02:00
Kartik Vashistha 9ff021faa4 refactor: based on pr comments
Add lua_ls annotations for improved hover experience and replace vim.fn.empty() with
vim.tbl_isempty()
2025-06-08 01:33:25 +01:00
Kartik Vashistha 0028a33e0a feat: improved lsp setup for nvim > 0.11 2025-06-07 20:02:03 +01:00
Arvin Verain ad50cccc28
docs: Add documentation for lazy's `init` key
Guide users towards lazy's `init` key for plugins written in VimScript.
2025-06-02 11:21:51 +08:00
Arvin Verain de21fefd4d
fix: Load guess-indent.nvim 2025-06-02 10:52:35 +08:00
Omri Sarig 6ba2408cdf
fix: rename vim.highlight.on_yank to vim.hl.on_yank (#1482)
The functions of vim.highlight were renamed to vim.hl on commit
18b43c331d8a0ed87d7cbefe2a18543b8e4ad360 of neovim, which was applied
with the release of nvim version 0.11.

Now, the use of vim.highlight is deprecated, and instead, one should
use vim.hl functions.
In practice, vim.highlight is still working, however, asking for help
for vim.highlight.on_yank fails (E149), while asking for help for
vim.hl.on_yank works as expected. So, by updating the used function, a
new user will have easier time looking getting the relevant help.

Co-authored-by: Omri Sarig <omri.sarig@prevas.dk>
2025-05-10 20:29:04 -04:00
Ori Perry c92ea7ca97
Replace vim.opt with vim.o (#1495)
* Replace vim.opt with vim.o

Because it offers a nicer interface and info on hover.
For now leave vim.opt when using the table interface (until vim.o
with tables is implemented)

* Add type hint for vim.opt.rtp

* Add a comment about using vim.opt instead of vim.o
2025-05-10 20:16:03 -04:00
guru245 2b2f0f8364
feat: switch vim-sleuth for guess-indent.nvim (#1512) 2025-05-10 20:11:50 -04:00
guru245 76cb865e4f
Change to Mason's new address (#1516) 2025-05-09 19:41:44 -04:00
brian tan 0568118b61 feat(diagnostics): Add `virtual_lines` for discoverability 2025-04-11 23:43:51 -04:00
Liam Dyer d350db2449
feat: switch nvim-cmp for blink.cmp (#1426) 2025-04-09 17:25:57 -04:00
Dmytro Onypko 9929044f24
Remove Telescope `0.1` branch lock (#1448) 2025-04-09 11:05:40 -04:00
Theo P. 1a5787bc57
Change LSP Keybindings to Match the Default `gr` Bindings Introduced in Neovim 0.11 (#1427)
* refactor: change LSP keybindings to the default gr bindings introduced in 0.11

* refactor: modify existing LSP functions to follow  convention
2025-04-09 11:01:57 -04:00
dasvh 8a5a52f647
fix: minor misspellings (#1450)
* fix: minor misspellings

* revert change for `-Bbuild`
2025-04-09 10:39:17 -04:00
Sander e947649cb0
feat(keymap): move windows without `<C-w>` (#1368) 2025-03-24 15:34:57 -04:00
RulentWave 5e2d7e184b
changed Conform's format_on_save lambda so that buffers that match disable_filetypes return nil. This allows you to enable a formatter for langages in the disable_filetypes table to have a formatter that can be run manually with Leader-f but doesnt enable format_on_save for them (#1395) 2025-03-24 15:33:53 -04:00
Crypto-Spartan 38f4744e25
feat: add `vim.opt.confirm = true` (#1384) 2025-03-12 17:24:44 -04:00
Chris Patti 34e7d29aa7
Propsed fix for init.lua warnings as per https://github.com/nvim-lua/kickstart.nvim/issues/1305#issuecomment-2657770325 (#1354) 2025-02-19 09:40:16 -05:00
Ari Pollak ea60b2b01f
Remove duplicate cmp-path (#1369) 2025-02-19 09:38:58 -05:00
Jonas Zeltner e64aa51ef2
fix: regression introduced in db78c0b217 (#1367) 2025-02-18 11:15:13 -05:00
Aryan Rajoria 7c49ba1cb7
Fix: fix the cmp-nvim-lsp-signature-help link (#1363) 2025-02-18 00:05:15 -05:00
Rob 282cbb9c82
feat: add basic function signature help (#1358)
* feat: add basic function signature help

* Update init.lua

Co-authored-by: makeworld <25111343+makew0rld@users.noreply.github.com>

---------

Co-authored-by: makeworld <25111343+makew0rld@users.noreply.github.com>
2025-02-17 19:12:06 -05:00
Joaquín Guerra ebca680dea
perf: load tokyonight.nvim in the intended way (#1360)
Fixes #1357
2025-02-17 19:10:48 -05:00
GeloCraft 76e06fec5c
feat(diagnostic): add diagnostic config (#1335)
Co-authored-by: gelocraft <gelocraft@users.noreply.github.com>
2025-02-17 13:01:07 -05:00
Jonas Zeltner db78c0b217
fix: arguments for the `vim.lsp.Client.supports_method` method (#1356) 2025-02-16 22:42:19 -05:00
bleacheda 71ad926ab1
docs: clarify using opts = {} vs config = function() ... require('plu… (#1316)
* docs: clarify using opts = {} vs config = function() ... require('plugin').setup({}) .. end

The current documentation mentioning that using "require" is equivalent to using "opts" without detailing the use in the "config = function()" block seems inaccurate.
Lower in the configuration the "config = function()" block is used without clarifying why it needed and what it does.
This clarification may help new users understand the difference between the two, or how and where to place the "require" statement.

* Update init.lua

* remove whitespace
2025-02-14 22:32:50 -05:00
Diorman Colmenares 5bdde24dfb
Use luals 3rd library for luv (#1303) 2025-01-15 14:38:26 -05:00
Nhan Luu f6abf682ff
chore: remove redundant comment (#1307) 2025-01-15 14:37:03 -05:00
Tomas Gareau db4867acb9
fix: prevent mason setup from being run twice (#1298)
* fix: prevent mason setup from being run twice

Addresses https://github.com/nvim-lua/kickstart.nvim/issues/1297

Currently, we're calling `require('mason').setup(...)` twice:
* once when setting it as a dependency of `nvim-lspconfig` (since we set
	`config = true`)
* once in the `config` function we define for `nvim-lspconfig`

Calling setup twice can cause issues with, e.g., setting the `PATH`
option: you might append Mason's bin dir in one setup call and prepend
it in the other.

We've kept the setup of `mason` in the `nvim-lspconfig` dependencies
table since leaving it to the `config` function caused some
plugin-loading-order related issues in the past. See:
* https://github.com/nvim-lua/kickstart.nvim/pull/210
* https://github.com/nvim-lua/kickstart.nvim/issues/554
* https://github.com/nvim-lua/kickstart.nvim/pull/555
* https://github.com/nvim-lua/kickstart.nvim/pull/865

* docs: tweak comments per review feedback
2025-01-07 10:44:29 -05:00
Ryan Jensen a8f539562a
Fix which-key delay settings (#1276)
The which-key plugin used to rely on vim.opt.timeoutlen, but it was
updated a few months ago to use its own opt.delay instead.

8ab96b38a2/NEWS.md?plain=1#L10

I set which-key's delay to 0 ms because it makes it feel snappy and
responsive! That way, we give new users a good first impression.
2024-12-29 12:04:10 -05:00
ben fleis bcdb4cd252
Issue 1249 which key comments (#1263)
* Tweak outdated comment about lazy's `config` key usage.

Remove outdated comment describing use of `config` key, replacing with
corrected `opt` key note.

Fixes #1249

* fix typo opt -> opts

Fixes #1250
2024-12-12 16:26:20 -05:00
Artem Dragunov a2df3ea9eb
Use consistent syntax style for { ... } "pseudocode" (#1247)
```
require('gitsigns').setup({ ... })
```

This was the first occurrence

It may be nice to have the same style everywhere

Cosmetic change (just to make docs/comments even more perfect)
2024-12-12 10:51:58 -05:00
ben fleis 7bc9d19a4d
Tweak outdated comment about lazy's `config` key usage. (#1250)
Remove outdated comment describing use of `config` key, replacing with
corrected `opt` key note.

Fixes #1249
2024-12-12 10:50:55 -05:00
Miha 8d1ef972bc
fix: which-key comment typo (#1227) 2024-11-20 08:41:50 -05:00
gloomy-lemon-debatable e5dc5f6d1c
feat: Change to prepare for upcoming deprecation of configuring diagnostic-signs using sign_define() (#1232) 2024-11-20 08:37:22 -05:00