Add .config/nvim/lua/plugin/01_whichkey.lua

Add .config/nvim/lua/plugin/02_sleuth.lua
Add .config/nvim/lua/plugin/05_fzf.lua
This commit is contained in:
Lewis Wynne 2025-11-03 01:57:24 +00:00
parent 453f1eea5f
commit 025da5d36a
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,18 @@
return {
{
'folke/which-key.nvim',
event = "VeryLazy",
opts = {
preset = "helix",
delay = function(ctx) return ctx.plugin and 0 or 20 end,
spec = {
{ "<leader>f", group = "fzf" },
{ "<leader>s", group = "snippet" },
{ "<leader>e", group = "edit config" },
},
},
keys = {
{ "<leader>?", function() require("which-key").show({ global = true }) end, desc = "buffer local keymaps" }
}
},
}

View file

@ -0,0 +1,5 @@
return {
{
'tpope/vim-sleuth',
},
}

View file

@ -0,0 +1,19 @@
return {
{
'ibhagwan/fzf-lua',
dependencies = { { 'nvim-mini/mini.icons' }, },
opts = {
winopts = {
preview = {
vertical = "down:65%",
flip_columns = 120
}
},
files = { git_icons = true, },
},
keys = {
{ "f", "<cmd>FzfLua global<CR>", mode = { "n" }, desc = "Fzf everything" },
{ "<leader>fg", "<cmd>FzfLua global<CR>", mode = { "n" }, desc = "Fzf everything" },
},
},
}