Commit graph

1910 commits

Author SHA1 Message Date
Folke Lemaitre
2a608f00d4
fix(copilot-chat): added support for snacks picker. Closes #5432. Closes #5552 2025-02-08 18:32:46 +01:00
github-actions[bot]
29829f7eb6
chore(main): release 14.11.0 (#5550)
🤖 I have created a release *beep* *boop*
---


##
[14.11.0](https://github.com/LazyVim/LazyVim/compare/v14.10.0...v14.11.0)
(2025-02-08)


### Features

* **config:** show a warning when lazy.nvim imports order is incorrect
([83988ea](83988ea46e))
* **defaults:** new installs now default to snacks picker/explorer.
Existing installs don't change.
([25d90b5](25d90b54a3))
* **extras:** big rework of default extras
([525377d](525377dee9))
* **util:** `has_extra` now also checks for manual imports in `lazy.lua`
([0416376](0416376733))


### Bug Fixes

* **extras:** remove debug
([b4c24a3](b4c24a3fe8))
* **snacks.explorer:** no longer needed to disable neo-tree
([2d6b492](2d6b49281d))
* **snacks.picker:** move dashboard shortcut to picker extra. Closes
[#5549](https://github.com/LazyVim/LazyVim/issues/5549)
([2b3bcf3](2b3bcf36b2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-08 15:37:13 +01:00
Folke Lemaitre
2b3bcf36b2
fix(snacks.picker): move dashboard shortcut to picker extra. Closes #5549 2025-02-08 15:27:26 +01:00
Folke Lemaitre
2d6b49281d
fix(snacks.explorer): no longer needed to disable neo-tree 2025-02-08 15:25:10 +01:00
Folke Lemaitre
25d90b54a3
feat(defaults): new installs now default to snacks picker/explorer. Existing installs don't change. 2025-02-08 15:23:30 +01:00
Folke Lemaitre
b4c24a3fe8
fix(extras): remove debug 2025-02-08 15:06:57 +01:00
Folke Lemaitre
525377dee9
feat(extras): big rework of default extras 2025-02-08 15:04:46 +01:00
Folke Lemaitre
0416376733
feat(util): has_extra now also checks for manual imports in lazy.lua 2025-02-08 13:49:05 +01:00
Folke Lemaitre
83988ea46e
feat(config): show a warning when lazy.nvim imports order is incorrect 2025-02-08 13:49:04 +01:00
github-actions[bot]
597cd8ffa3
chore(main): release 14.10.0 (#5500)
🤖 I have created a release *beep* *boop*
---


##
[14.10.0](https://github.com/LazyVim/LazyVim/compare/v14.9.0...v14.10.0)
(2025-02-07)


### Features

* **bufferline:** support for snacks picker sidebars
([3500d6a](3500d6a826))
* **refactoring:** fallback to using vim ui select for refactoring.nvim
([#5540](https://github.com/LazyVim/LazyVim/issues/5540))
([23a1bbd](23a1bbdae9))
* **snacks.explorer:** enabled netrw integration
([4f006f1](4f006f1fba))
* **snacks.picker:** add projects picker to dashboard if snacks picker
is enabled
([fb256f2](fb256f2b68))
* **snacks.picker:** some extra keymaps
([ab30442](ab30442652))
* **snippets:** mini.snippets is out of beta
([#5505](https://github.com/LazyVim/LazyVim/issues/5505))
([4a81a37](4a81a370d7))


### Bug Fixes

* **copilot:** remove load on BufReadPost instead of InsertEnter
([8f4e9b8](8f4e9b8c1e))
* **go:** update go.lua to eliminate fieldalignment from analyses
([#5170](https://github.com/LazyVim/LazyVim/issues/5170))
([5c97327](5c9732733d))


### Performance Improvements

* **snacks_picker:** lazy-load trouble open action
([1a4d948](1a4d948e0d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-08 00:10:47 +01:00
cjon256
5c9732733d
fix(go): update go.lua to eliminate fieldalignment from analyses (#5170)
## Description

Removed a setting from the go lang plugin. The setting now just causes
an error:
LSP[gopls] Invalid settings: setting option "analyses": this setting is
deprecated, use "the 'fieldalignment' analyzer was removed in
gopls/v0.17.0; instead, hover over struct fields to see size/offset
information (https://go.dev/issue/66861)" instead

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

Note: submitted similar request as f96aac6 but was rejected by CI/CD for
naming reasons. Changing the name did not help. Retrying.
2025-02-08 00:09:03 +01:00
RohitB
23a1bbdae9
feat(refactoring): fallback to using vim ui select for refactoring.nvim (#5540)
## Description

Fallback to using `require("refactoring").select_refactor()` if neither
of `telescope` or `fzf-lua` is installed. Since `select_refactor()` uses
`vim.ui.select` internally, it can use `snacks.picker` if it is enabled.
## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [ x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-02-06 21:39:37 +01:00
Folke Lemaitre
3e8fddcd54
style(snacks.picker): buffer diagnostics keymap desc 2025-02-05 14:41:30 +01:00
Folke Lemaitre
ab30442652
feat(snacks.picker): some extra keymaps 2025-02-05 08:00:58 +01:00
Folke Lemaitre
fb256f2b68
feat(snacks.picker): add projects picker to dashboard if snacks picker is enabled 2025-02-02 23:34:07 +01:00
Folke Lemaitre
1a4d948e0d
perf(snacks_picker): lazy-load trouble open action 2025-02-02 18:03:13 +01:00
Folke Lemaitre
3500d6a826
feat(bufferline): support for snacks picker sidebars 2025-01-31 20:33:15 +01:00
Folke Lemaitre
8f4e9b8c1e
fix(copilot): remove load on BufReadPost instead of InsertEnter 2025-01-31 20:10:50 +01:00
abeldekat
4a81a370d7
feat(snippets): mini.snippets is out of beta (#5505)
## Description

mini.snippets is out of beta, so I adjusted the description for the
extra accordingly


## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

---------

Co-authored-by: abeldekat <abel@nomail.com>
2025-01-31 17:11:26 +01:00
Folke Lemaitre
0e94534dd9
style(picker.explorer): use shortcut 2025-01-31 08:33:15 +01:00
Folke Lemaitre
4f006f1fba
feat(snacks.explorer): enabled netrw integration 2025-01-31 08:32:48 +01:00
github-actions[bot]
eb8ddea8c9
chore(main): release 14.9.0 (#5438)
🤖 I have created a release *beep* *boop*
---


##
[14.9.0](https://github.com/LazyVim/LazyVim/compare/v14.8.0...v14.9.0)
(2025-01-30)


### Features

* **markdown:** added markdown support for codecompanion
([e9db488](e9db488aca))
* **snacks.picker:** added &lt;leader&gt;si to search icons
([#5460](https://github.com/LazyVim/LazyVim/issues/5460))
([eea52be](eea52be344))
* **snacks.picker:** added &lt;leader&gt;su to search undotree
([#5447](https://github.com/LazyVim/LazyVim/issues/5447))
([332b320](332b32080c))
* **snacks.picker:** added `leader-fB` to find any buffer (including
hidden & nofile)
([83bf636](83bf6360a1))
* **snacks.picker:** added `leader-sp` to search for plugin spec
([7cf4185](7cf4185dc4))
* **snacks.picker:** added alt-c to toggle between cwd/root dir
([6be7c4f](6be7c4fee4))
* **snacks.picker:** flash.nvim integration
([5d24aa6](5d24aa6311))
* **snacks.picker:** use snacks picker for notifications when enabled
([01a70cc](01a70cc60e))
* **snacks:** extra for snacks explorer (replacement for neo-tree)
([e20d9af](e20d9afcbc))
* **snippets:** an extra for mini.snippets
([#5274](https://github.com/LazyVim/LazyVim/issues/5274))
([8b4e6ff](8b4e6ff70d))


### Bug Fixes

* **keymaps:** remove unneeded and ambiguous `&lt;leader&gt;w` keymap
([#5459](https://github.com/LazyVim/LazyVim/issues/5459))
([132986a](132986a624))
* **luasnip:** schedule `jump` to be compatible with blink, nvim-cmp
still works after change
([#5470](https://github.com/LazyVim/LazyVim/issues/5470))
([0350934](0350934d56))
* **root:** pass args to root.get
([dc8512f](dc8512fce1))
* **snacks.picker:** flash integration
([b5cd0d0](b5cd0d0e27))
* **snacks.picker:** snacks =&gt; flash
([3de7b24](3de7b24cf6))
* **snacks:** use `Snacks.picker` for recent files
([#5485](https://github.com/LazyVim/LazyVim/issues/5485))
([f0d2629](f0d2629bd8))
* **sql:** better nvim-cmp check. Closes
[#5188](https://github.com/LazyVim/LazyVim/issues/5188)
([1e83b4f](1e83b4f843))
* **vscode:** diabled some snacks plugins. Fixes
[#5364](https://github.com/LazyVim/LazyVim/issues/5364)
([c7a7ab5](c7a7ab5112))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-30 22:07:58 +01:00
Folke Lemaitre
e9db488aca
feat(markdown): added markdown support for codecompanion 2025-01-30 21:38:56 +01:00
Folke Lemaitre
e20d9afcbc
feat(snacks): extra for snacks explorer (replacement for neo-tree) 2025-01-30 15:21:01 +01:00
Folke Lemaitre
b5cd0d0e27
fix(snacks.picker): flash integration 2025-01-29 23:21:59 +01:00
Folke Lemaitre
3de7b24cf6
fix(snacks.picker): snacks => flash 2025-01-29 21:06:38 +01:00
Folke Lemaitre
5d24aa6311
feat(snacks.picker): flash.nvim integration 2025-01-29 20:18:43 +01:00
Iordanis Petkakis
f0d2629bd8
fix(snacks): use Snacks.picker for recent files (#5485)
## Description
Use `Snacks.picker` for recent files instead of `LazyVim.pick`, because
`root_dir` is being propagated to `opts.cwd` and does not correctly
filter out recent files when inside nested directories.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
None
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-28 18:55:02 +01:00
Folke Lemaitre
01a70cc60e
feat(snacks.picker): use snacks picker for notifications when enabled 2025-01-28 17:22:17 +01:00
iniw
132986a624
fix(keymaps): remove unneeded and ambiguous <leader>w keymap (#5459)
## Description

The `<leader>w` mapping, described as "Windows", was causing potentially
timeout-related bugs with many other mappings that also started with
`<leader>w`.

The problems caused by this are described in detail in issue #5456 and
in discussion #4157.

@dpetka2001 Suggested removing it as an experiment, which I tried and
found to work.

<!--
  - Fixes #5456
  - Fixes #4157
-->

## Checklist

- [X] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-28 12:42:48 +01:00
Iordanis Petkakis
0350934d56
fix(luasnip): schedule jump to be compatible with blink, nvim-cmp still works after change (#5470)
## Description
Schedule `jump` in Luasnip `snippet_forward`, so that it doesn't get
stuck before the last placeholder.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
Fixes #5469
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-28 09:19:01 +01:00
Folke Lemaitre
83bf6360a1
feat(snacks.picker): added leader-fB to find any buffer (including hidden & nofile) 2025-01-23 19:22:47 +01:00
Folke Lemaitre
7cf4185dc4
feat(snacks.picker): added leader-sp to search for plugin spec 2025-01-23 19:22:19 +01:00
Jorge Villalobos
eea52be344
feat(snacks.picker): added <leader>si to search icons (#5460)
## Description

As it reads on the tin can.

## Related Issue(s)

N/A

## Screenshots

![Screenshot 2025-01-23 at 11 49
49](https://github.com/user-attachments/assets/6c4d0e9a-0a8e-4128-9ef1-b7954ece2bc7)

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-23 19:19:48 +01:00
Jorge Villalobos
332b32080c
feat(snacks.picker): added <leader>su to search undotree (#5447)
## Description

As it reads on the title ;)

## Related Issue(s)

None.

## Screenshots

![Screenshot 2025-01-22 at 14 02
30](https://github.com/user-attachments/assets/f8d2ba88-f279-4715-8120-7610c58bd269)
![Screenshot 2025-01-22 at 14 03
04](https://github.com/user-attachments/assets/08bc1b26-f49c-4f25-ad66-1166a3f72605)

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-23 16:51:36 +01:00
abeldekat
8b4e6ff70d
feat(snippets): an extra for mini.snippets (#5274)
## Description

Mini.snippets, a plugin to manage and expand snippets, is currently in
[beta](https://github.com/echasnovski/mini.nvim/issues/1428).

I think the plugin is a very interesting alternative to `luasnip`.

The following `lazydoc` will be added:

```lua
if lazyvim_docs then
  -- Set to `false` to prevent "non-lsp snippets"" from appearing inside completion windows
  -- Motivation: Less clutter in completion windows and a more direct usage of snippits
  vim.g.lazyvim_mini_snippets_in_completion = true

  -- Using default mini.snippets, completion suggestions might appear directly after inserting a snippet
  -- This extra prevents that from happening.
  -- Motivation: A better display of the current snippet.
  -- Also, those completions do not appear when using luasnip or native snippets
  --
  -- Set to `false` to enable completion suggestions directly after inserting a snippet
  vim.g.lazyvim_mini_snippets_override_expand_insert = true

  -- NOTE: Please also read:
  -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-snippets.md#expand
  -- :h MiniSnippets-session

  -- Example override for your own config:
  --[[
  return {
    {
      "echasnovski/mini.snippets",
      opts = function(_, opts)
        -- By default, for opts.snippets, the extra for mini.snippets only adds gen_loader.from_lang()
        -- This provides a sensible quickstart, integrating with friendly-snippets
        -- and your own language-specific snippets
        --
        -- In order to change opts.snippets, replace the entire table inside your own opts

        local snippets, config_path = require("mini.snippets"), vim.fn.stdpath("config")

        opts.snippets = { -- override opts.snippets provided by extra...
          -- Load custom file with global snippets first (order matters)
          snippets.gen_loader.from_file(config_path .. "/snippets/global.json"),

          -- Load snippets based on current language by reading files from
          -- "snippets/" subdirectories from 'runtimepath' directories.
          snippets.gen_loader.from_lang(), -- this is the default in the extra...
        }
      end,
    },
  }
--]]
end

```

It's possible to use the code from this PR directly in your own
configuration:

1. Copy the code to lua/extras/coding/mini_snippets.lua in your config
folder
2. Restart nvim and enable the "user" extra for `mini.snippets`
3. Restart nvim
 
## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

---------

Co-authored-by: abeldekat <abel@nomail.com>
2025-01-23 12:03:36 +01:00
Folke Lemaitre
1e83b4f843
fix(sql): better nvim-cmp check. Closes #5188 2025-01-20 20:32:17 +01:00
Folke Lemaitre
c7a7ab5112
fix(vscode): diabled some snacks plugins. Fixes #5364 2025-01-20 20:30:39 +01:00
Folke Lemaitre
6be7c4fee4
feat(snacks.picker): added alt-c to toggle between cwd/root dir 2025-01-20 20:21:23 +01:00
Folke Lemaitre
dc8512fce1
fix(root): pass args to root.get 2025-01-20 20:21:01 +01:00
github-actions[bot]
2bea40c447
chore(main): release 14.8.0 (#5409)
🤖 I have created a release *beep* *boop*
---


##
[14.8.0](https://github.com/LazyVim/LazyVim/compare/v14.7.0...v14.8.0)
(2025-01-20)


### Features

* **chezmoi:** add snacks picker integration for chezmoi files
([#5429](https://github.com/LazyVim/LazyVim/issues/5429))
([970d1a0](970d1a05da))
* **dial:** add checkbox augend for markdown
([#5411](https://github.com/LazyVim/LazyVim/issues/5411))
([b19f207](b19f2070b8))
* **snacks.picker:** added leader-sS to search lsp workspace symbols
([8787ec1](8787ec1227))
* **snacks:** added git diff keymap to pick hunks with leader-gd
([62cb4a4](62cb4a465c))


### Bug Fixes

* **markdown:** disable checkbox rendering since it's annoying to edit
([4f31bfa](4f31bfab86))
* **snacks.picker:** fix mapping for `Recent (cwd)`
([#5407](https://github.com/LazyVim/LazyVim/issues/5407))
([8307b0f](8307b0fe50))
* **snacks.picker:** fix mapping for Projects for consistency
([#5433](https://github.com/LazyVim/LazyVim/issues/5433))
([eb7b453](eb7b453b48))
* **snacks.picker:** respect lazyvim.config.kind_filter
([#5415](https://github.com/LazyVim/LazyVim/issues/5415))
([df7426e](df7426eefa))


### Performance Improvements

* **java:** setting opts.dap_main to false to disable main class scan
([#5391](https://github.com/LazyVim/LazyVim/issues/5391))
([66c3577](66c3577bc7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-20 13:50:28 +01:00
Junyi Liu
66c3577bc7
perf(java): setting opts.dap_main to false to disable main class scan (#5391)
## Description

For large Java project, calling
`require("jdtls.dap").setup_dap_main_class_configs(opts.dap_main)` has a
huge performance impact on the LSP. I tested on a Java project with 3.7K
java source files and 12K other files, a simple go_definition can take
about 20-30 seconds.

This change allow user to set the `opts.dap_main` to false so we can
skip the main class scan. By using the `.lazy.lua` project specific
setting, we can easily customize this option per project.

## Related Issue(s)

#5387 

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-20 13:16:14 +01:00
Daniel Chong
eb7b453b48
fix(snacks.picker): fix mapping for Projects for consistency (#5433)
## Description

`<leader>fp` is the mapping for Telescope and fzf for
[Projects](https://www.lazyvim.org/extras/util/project). This PR makes
this shortcut consistent for snacks picker.

## Related Issue(s)

## Screenshots

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-20 11:55:51 +01:00
Folke Lemaitre
8787ec1227
feat(snacks.picker): added leader-sS to search lsp workspace symbols 2025-01-19 18:33:48 +01:00
Imron Gamidli
970d1a05da
feat(chezmoi): add snacks picker integration for chezmoi files (#5429)
## Description

We have a new picker Snacks picker, it means telescope and fzf-lua can
be uninstalled. But chezmoi files still listed only with telescope and
fzf-lua. In this pr we add snacks.picker integration if the user has
chosen snacks.picker in the LazyVimExtras.
2025-01-18 14:52:25 +01:00
Jorge Villalobos
b729e65318
refactor(blink): color swatch icon upstreamed (#5141)
## Description

I've upstreamed the block char vs. icon replacement for Tailwind colors
so we shouldn't need this here anymore. I've replaced it by extending
the default blink icons instead, just in case they introduce an icon
which isn't yet covered by Lazy's, it would still show up (unlikely, but
better, no?).

## Related Issue(s)

none

## Screenshots

none

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-17 10:00:30 +01:00
Riri
df7426eefa
fix(snacks.picker): respect lazyvim.config.kind_filter (#5415)
## Description

Currently, snacks.picker does not filter symbols based on the
kind_filter configured in lazyvim.

This PR addresses that issue.

## Screenshots

nil

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

Co-authored-by: ding.zhao <ding.zhao@trip.com>
2025-01-16 11:37:59 +01:00
Folke Lemaitre
4f31bfab86
fix(markdown): disable checkbox rendering since it's annoying to edit 2025-01-16 10:05:33 +01:00
Yusuf Aktepe
b19f2070b8
feat(dial): add checkbox augend for markdown (#5411)
## Description

Added support for markdown checkboxes. ( **[ ]** <-> **[x]** )

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-16 10:01:30 +01:00
Folke Lemaitre
62cb4a465c
feat(snacks): added git diff keymap to pick hunks with leader-gd 2025-01-16 09:58:43 +01:00