LazyVim.LazyVim/lua/lazyvim/plugins/extras
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
..
coding feat(copilot-chat): ctrl-s now works in both normal and insert mode 2024-06-16 20:17:16 +02:00
dap fix(dap): only load mason-nvim-dap when not disabled (#3784) 2024-06-23 20:04:51 +02:00
editor feat(extras): add overseer.nvim plugin extra (#2421) 2024-06-29 09:47:03 +02:00
formatting fix(prettier): fixup 2024-06-07 23:24:01 +02:00
lang perf(markdown): only run markdownlint-cli2 formatter when there are markdownlint diagnostics for the buffer 2024-06-30 11:16:10 +02:00
linting feat: use LazyVim everywhere instead of require("lazyvim.util") 2024-03-22 09:15:09 +01:00
lsp feat: moved neoconf.nvim to extras 2024-06-02 09:05:16 +02:00
test fix(neotest): support adapter key on adapter for playwright (#3824) 2024-06-27 16:04:26 +02:00
ui fix(edgy): improve edgy.lua bufferline offset logic (#3794) 2024-06-29 10:47:39 +02:00
util fix(chezmoi): missing support for fzf file picker (#3888) 2024-07-03 07:51:13 +02:00
vscode.lua feat(vscode): added ts-comments to allow list for vscode 2024-05-29 18:22:54 +02:00