LazyVim.LazyVim/lua/lazyvim/plugins/extras/util
Jørgen Jensen 2114a6610f
fix(chezmoi): missing support for fzf file picker (#3888)
## What is this PR for?

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->
  
This fixes an issue with the chezmoi extra that won't work if the
LazyVim picker is fzf-lua instead of Telescope. Fx if you have the
`editor.fzf` and `util.chezmoi` extras enabled at the same time, trying
to open the config from the dashboard will result in the following error
because Telescope has been replaced with fzf:
```
E5108: Error executing lua: vim/_editor.lua:0: nvim_exec2(): Vim:E492: Not an editor command: Telescope chezmoi find_files
stack traceback:
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function 'cmd'
	...re/nvim/lazy/dashboard-nvim/lua/dashboard/theme/doom.lua:24: in function <...re/nvim/lazy/dashboard-nvim/lua/dashboard/theme/doom.lua:20>

```
This PR fixes the issue by checking which LazyVim picker is in use. 

Before: 


31cade36-1655-438f-9aa8-c3de8fec881f

After: 


55f7d0c7-9632-4d52-8a6e-dfba17b14ed4


## Does this PR fix an existing issue?

<!--
  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 07:51:13 +02:00
..
chezmoi.lua fix(chezmoi): missing support for fzf file picker (#3888) 2024-07-03 07:51:13 +02:00
dot.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
gitui.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
mini-hipatterns.lua feat(hipatterns): added vue/astro 2024-06-03 09:24:19 +02:00
octo.lua fix(noice): dont show old messages when installing plugins 2024-06-25 00:24:38 +02:00
project.lua refactor(project): use header descriptions without using fzf-lua.actions (#3821) 2024-06-27 16:05:47 +02:00
startuptime.lua feat(util)!: move vim-startuptime to an extra 2024-05-16 21:25:51 +02:00