Commit Graph
37 Commits
Author SHA1 Message Date
Folke Lemaitre 6bdeeac529 feat(extras): added extra for snacks picker 2025-01-11 00:40:35 +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 c40692c1b0 revert: fix(fzf): fzf.lua compatible hidden scrollbar (#5177)
This reverts commit 3a79273f3c.
2024-12-19 08:29:19 +01:00
Uzzal Devkota 3a79273f3c fix(fzf): fzf.lua compatible hidden scrollbar (#5177)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->
`--no-scrollbar` option is not supported by
[fzf-lua](https://github.com/ibhagwan/fzf-lua)
The recommended way is to set `winopts.preview.scrollbar=false`

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-12-18 22:28:04 +01:00
Iordanis PetkakisandFolke Lemaitre 0819f9396e fix(fzf): decouple defaults from opts to easy switch profiles (#4190)
## Description
This decouples `defaults` from `opts`, so that if users switch to
another profile they can take advantage of
the profile's default settings and prompts.

I use `default-title` either way. I just stumbled upon this when I tried
the rest profiles and thought maybe there
would be users who would prefer to have the default prompts if they
chose another profile.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
No
<!--
  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.

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-11-13 19:20:48 +01:00
Folke Lemaitre 337e9ddc00 fix(pick): get rid of "auto" picker and set better defaults for telescope find_files (#4024)
## Description

Changes telescope's `find_files` options to match `fzf-lua` that matches
what `git_files` does including untracked files.

## Related Issue(s)

Fixes #3974

## 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-07-14 07:52:00 +02:00
Folke Lemaitre 33e1da585d fix(fzf-lua): move register_select to lazy init 2024-07-07 17:23:53 +02:00
Folke Lemaitre 9acadc7ec2 fix(fzf): make sure vim.ui.select works when fzf is not loaded yet 2024-07-04 15:21:02 +02:00
Iordanis Petkakis d5f3d395f4 feat(fzf-lua): preview keymaps for git (#3904)
## What is this PR for?
It seems that the preview keymaps set right now only support the builtin
previewer.

From searching through `fzf-lua` docs, I found
[here](https://github.com/ibhagwan/fzf-lua/blob/3b91c1a471160bd8620bdca8f18743d954994daa/README.md?plain=1#L634-L638)
that additional mappings should be set for the other previewers such as
`git` (otherwise the defaults `<shift-down/up>` could be used).

I chose to use the same mappings for the `fzf` preview keymaps as they
serve the same functionality. Please feel free to change if not to your
liking.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Does this PR fix an existing issue?
Not an issue but a discussion #3895
<!--
  If this PR fixes any issues, please link to the issue here.
  Fixes #<issue_number>
-->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-07-03 21:49:21 +02:00
Folke Lemaitre b9a8a4ad7f perf(fzf): lazy-load fzf-lua 2024-07-03 18:00:58 +02:00
Iordanis Petkakis b5945c2fc8 fix(fzf): disable preview for vtsls (#3798)
## What is this PR for?
Disable `preview` in `fzf-lua` Extra for `vtsls`. I tested it with
Python and Typescript Extras and in Typescript pressing `<leader>ca`
shows without previewer, while in Python the same shows with previewer.

Kindly check also that this is correct and I didn't miss out anything
else.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Does this PR fix an existing issue?
Fixes #3773
<!--
  If this PR fixes any issues, please link to the issue here.
  Fixes #<issue_number>
-->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-06-24 22:11:32 +02:00
Folke Lemaitre 05e45e0d35 refactor: LazyVim.config 2024-06-16 15:35:38 +02:00
Folke Lemaitre cda30f2740 feat(fzf): basic image viewing support 2024-06-16 09:06:34 +02:00
Folke Lemaitre e1f587a43d fix(fzf): only add trouble integration when trouble is available 2024-06-15 00:34:51 +02:00
Folke Lemaitre 304e7439aa fix(pick): allow configuring pickers without LazyExtras. Fixes #3626 2024-06-14 17:55:43 +02:00
Folke Lemaitre c9380a309d fix(fzf): esc and c-j, c-k keymaps with nowait. update fzf-lua as well 2024-06-14 17:53:44 +02:00
Folke Lemaitre 7c7703d792 fix(fzf): esc and nowait 2024-06-14 08:31:58 +02:00
xiaojianzhengand肖健正 427e57ddf7 fix(fzf): floating previewer closed fail (#3638)
- floating previewer closed fail.
https://github.com/LazyVim/LazyVim/issues/3582

Co-authored-by: 肖健正 <xiaojianzheng@qq.com>
2024-06-14 08:24:14 +02:00
Folke Lemaitre e948435f17 feat(fzf): better layout for code actions 2024-06-13 13:05:16 +02:00
Folke Lemaitre 39a908c9fa feat(pick): move pickers to extras (telescope still the default) (#3606)
## What is this PR for?

Refactoring of pickers in LazyVim:

- [x] telescope moved to extras
- [x] dressing was moved to the telescope extra. Not needed with fzf-lua
and noice
- [x] when none of the two is enabled, then telescope will be enabled
- [x] when using `:LazyExtras` to enable fzf-lua, the telescope spec
will never be parsed
- [x] when not using `:LazyExras`, the spec will be parsed, but one of
the two will be disabled.
- [x] only one picker extra can be used to prevent issues
- [ ] cleanup lsp keymaps
2024-06-13 06:07:02 +02:00
Folke Lemaitre 5c876b7549 feat(fzf): disable dressing in favor of noice (vim.ui.input) and fzf-lua (vim.ui.select) 2024-06-12 11:31:25 +02:00
Folke Lemaitre 14d1ca93d0 feat(fzf): use vscode style path names formatter 2024-06-12 11:23:45 +02:00
Folke Lemaitre 74cf6e4462 feat(fzf): better default window size/position 2024-06-12 00:27:23 +02:00
Folke Lemaitre 16971006c2 feat(fzf): use delta previewer for code actions when available 2024-06-11 23:48:16 +02:00
Folke Lemaitre 1c740ce3fd feat(fzf): added ctrl-x to jump with easymotion to a line, similar to flash telescope 2024-06-11 19:38:48 +02:00
Folke Lemaitre 9f2a3699a8 feat(fzf): added ctrl-u and ctrl+d to scroll in the results list 2024-06-11 19:38:22 +02:00
Folke Lemaitre 7e0ac6850b fix(fzf): symbols filter 2024-06-11 16:11:45 +02:00
Folke Lemaitre 056042b221 fix(fzf): live document symbols. Fixes #3587 2024-06-11 16:08:27 +02:00
Folke Lemaitre 79b7c489fd fix(fzf): cleanup 2024-06-11 15:47:14 +02:00
Folke Lemaitre c6ddb2328d fix(fzf): action desc 2024-06-11 14:58:35 +02:00
Folke Lemaitre 19a6e2de15 fix(fzf): added action descriptions. (still doesnt work for trouble) 2024-06-11 14:49:09 +02:00
Folke Lemaitre d541069fdf fix(pick): recent files in cwd. Fixes #3580 2024-06-11 14:26:46 +02:00
Folke Lemaitre c4818616d5 feat(fzf): ignore current line for some lsp pickers 2024-06-11 09:05:16 +02:00
Folke Lemaitre 8bb653876c feat(fzf): better scrollbars 2024-06-11 09:04:39 +02:00
Folke Lemaitre d1d24fa077 fix(fzf): lowercase symbols 2024-06-11 07:44:32 +02:00
Folke Lemaitre ba3aec7b48 feat(fzf): prettier document symbols 2024-06-11 07:42:21 +02:00
Folke LemaitreandIordanis Petkakis 6ab404134d feat(extras): added fzf-lua (#3555)
New extra with an initial implementation of fzf-lua.

## Todo

- [x] check all places that currently depend on telescope and provide an
alternative or disable
- [x] disable telescope spec completely. (currently only removed its
keymaps)
- [x] trouble integration
- [x] https://github.com/ibhagwan/fzf-lua/issues/1241

---------

Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com>
2024-06-10 21:58:33 +02:00