diff --git a/private_dot_config/nvim/lua/plugin/01_whichkey.lua b/private_dot_config/nvim/lua/plugin/01_whichkey.lua new file mode 100644 index 0000000..2536d60 --- /dev/null +++ b/private_dot_config/nvim/lua/plugin/01_whichkey.lua @@ -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 = { + { "f", group = "fzf" }, + { "s", group = "snippet" }, + { "e", group = "edit config" }, + }, + }, + keys = { + { "?", function() require("which-key").show({ global = true }) end, desc = "buffer local keymaps" } + } + }, +} diff --git a/private_dot_config/nvim/lua/plugin/02_sleuth.lua b/private_dot_config/nvim/lua/plugin/02_sleuth.lua new file mode 100644 index 0000000..578c89d --- /dev/null +++ b/private_dot_config/nvim/lua/plugin/02_sleuth.lua @@ -0,0 +1,5 @@ +return { + { + 'tpope/vim-sleuth', + }, +} diff --git a/private_dot_config/nvim/lua/plugin/05_fzf.lua b/private_dot_config/nvim/lua/plugin/05_fzf.lua new file mode 100644 index 0000000..43ea116 --- /dev/null +++ b/private_dot_config/nvim/lua/plugin/05_fzf.lua @@ -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", "FzfLua global", mode = { "n" }, desc = "Fzf everything" }, + { "fg", "FzfLua global", mode = { "n" }, desc = "Fzf everything" }, + }, + }, +}