updated 'minimal_init.lua', instructions in ISSUE_TEMPLATE

main
bhagwan 2 years ago
parent ab19fda7da
commit 24167e2b26

@ -9,6 +9,16 @@
- `nvim --version`:
- `fzf --version`:
<!--
Check if your problem is reproducible with minimal init, by running:
nvim -u <((echo "lua << EOF") && (curl -s https://raw.githubusercontent.com/ibhagwan/fzf-lua/main/minimal_init.lua) && (echo "EOF"))
Change '[ ]' to '[x]' below if the issue is reproducible.
-->
- [ ] The issue is reproducible with `minimal_init.lua`
<!-- Delete this section if the issue is reproducible with minimal init -->
<details>
<summary>fzf-lua configuration</summary>
@ -18,7 +28,6 @@
require('fzf-lua').setup({
})
```
</details>
### Description

@ -31,19 +31,25 @@ if not res then
end
end
packer.startup({function(use)
use { 'wbthomason/packer.nvim', opt = true }
use { 'ibhagwan/fzf-lua',
config = function()
vim.api.nvim_set_keymap('n', '<C-p>',
'<Esc>:lua require"fzf-lua".files()<CR>', {})
require'fzf-lua'.setup({})
end,
}
end})
packer.startup({
function(use)
use { 'wbthomason/packer.nvim', opt = true }
use { 'ibhagwan/fzf-lua',
setup = [[ vim.api.nvim_set_keymap('n', '<C-p>',
'<Cmd>lua require"fzf-lua".files()<CR>', {}) ]],
config = 'require"fzf-lua".setup({})',
event = 'VimEnter',
opt = true,
}
end,
-- do not remove installed plugins (when running 'vim -u')
config = { auto_clean = false }
})
packer.on_compile_done = function()
packer.loader('fzf-lua')
end
if not vim.loop.fs_stat(packer.config.compile_path) then
packer.sync()
else
packer.compile()
end

Loading…
Cancel
Save