Commit graph

1381 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
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
525377dee9
feat(extras): big rework of default extras 2025-02-08 15:04:46 +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
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
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
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
Iordanis Petkakis
8307b0fe50
fix(snacks.picker): fix mapping for Recent (cwd) (#5407)
## Description
The mapping `<leader>fR` was showing all recent files instead of the
ones in the `cwd` only.
<!-- 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-15 19:53:56 +01:00
Folke Lemaitre
13044c298e
feat(extras): added extra for snacks picker (#5368)
## Description

See https://github.com/folke/snacks.nvim/pull/445

NOTE: I'm **not** going to replace `fzf-lua` anytime soon. Learned my
lessons with that one :)

<!-- 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-14 22:54:12 +01:00
Folke Lemaitre
8d2d9a9bd9
fix(blink): added new luasnip preset 2025-01-08 07:41:44 +01:00
Iordanis Petkakis
05c3447558
fix(luasnip): correctly remove duplicate snippets (#5214)
## Description
Remove `snippets` from `opts.sources.default` when Luasnip is enabled to
not get duplicate snippets.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
Fixes #5210
<!--
  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-07 12:04:17 +01:00
William Heryanto
4e746d0e56
fix(nlua): debugger not responding (#5319)
## Description

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

Reference:
https://github.com/jbyuki/one-small-step-for-vimkind/issues/45#issuecomment-2125749906

Fix nlua debug adapter not responding, which for some reason because of
`fzf-lua`.

## 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. -->

No screenshot instead I'm providing how to reproduce with assumption
`dap.nlua` extra is enabled. Steps:

1. Launch the nlua `:lua require'osv'.launch({port=8086})`

2. Attach from any neovim instance to the debugger

   1. Run the debugger
      - Can do `<leader>dc`; or
      - Can do `:lua require'dap'.continue()`
   2. Choose `Attach to running Neovim instance (port = 8086)`

3. Prior to this changes, debugger will got timeout like the following

   ```text
Debug adapter didn't respond. Either the adapter is slow (then wait and
ignore this) or there is a problem with your adapter or `nlua`
configuration. Check the logs for errors (:help dap.set_log_level)
   ```

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-06 05:52:36 +01:00
Folke Lemaitre
86de9c9e44
fix(luasnip): use blink's luasnip source. Closes #5211 2024-12-20 18:35:22 +01:00
Igor Guerrero
857f330c21
fix(blink): remove compatibility with 0.7.6 release (#5212)
## Description

With the version update 5 mins ago, I got an error with this setting.

I'm not sure if removal is the correct way to fix this but it does runs
well on my local.

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-12-20 18:10:45 +01:00
milanglacier
7a16a752ba
feat(lualine): add fzf extensions. (#5203)
## Description

Similar to #5175, add `fzf` integration with lualine.

Note that similar to #5175, integration with `fzf` is included
unconditionally. I think we don't need to check if the users choose
`fzf` as their default picker to conditionally add the fzf integration
with lualine.

## Screenshots

**Before**:

<img width="446" alt="Screenshot 2024-12-19 at 17 58 30"
src="https://github.com/user-attachments/assets/b9974180-92e7-47fe-8f48-b153f29e0c72"
/>

**After**:

<img width="204" alt="Screenshot 2024-12-19 at 17 59 28"
src="https://github.com/user-attachments/assets/777c3433-2347-4b6a-a5cd-435404b1386a"
/>
2024-12-20 09:11:44 +01:00
Manuuurino
a3a28bf8e4
perf(supermaven): add lazy-loading (#5183)
## Description

As title, somehow these events have been forgotten, ive checked the git
history of it aswell.

## 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.
2024-12-19 15:41:11 +01:00
Folke Lemaitre
c40692c1b0
revert: fix(fzf): fzf.lua compatible hidden scrollbar (#5177)
This reverts commit 3a79273f3c.
2024-12-19 08:29:19 +01:00