From c09d9d0ed0a4c896544619a01cb632b5fc60bd2a Mon Sep 17 00:00:00 2001 From: Thomas Alcala Schneider Date: Fri, 7 Jul 2023 19:24:09 +0200 Subject: [PATCH] feat: one theme and flash --- init.lua | 4 +++- lua/custom/plugins/colorschemes/arctic.lua | 4 ++++ lua/custom/plugins/flash.lua | 23 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/colorschemes/arctic.lua create mode 100644 lua/custom/plugins/flash.lua diff --git a/init.lua b/init.lua index 57c9af42..08ce228c 100644 --- a/init.lua +++ b/init.lua @@ -203,7 +203,9 @@ require('lazy').setup({ -- -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins { import = 'custom.plugins' }, -}, {}) +}, { + concurrency = 10, +}) -- [[ Setting options ]] -- See `:help vim.o` diff --git a/lua/custom/plugins/colorschemes/arctic.lua b/lua/custom/plugins/colorschemes/arctic.lua new file mode 100644 index 00000000..635f6bb8 --- /dev/null +++ b/lua/custom/plugins/colorschemes/arctic.lua @@ -0,0 +1,4 @@ +return { + 'rockyzhang24/arctic.nvim', + dependencies = { 'rktjmp/lush.nvim' }, +} diff --git a/lua/custom/plugins/flash.lua b/lua/custom/plugins/flash.lua new file mode 100644 index 00000000..2c0dcce9 --- /dev/null +++ b/lua/custom/plugins/flash.lua @@ -0,0 +1,23 @@ +return { + 'folke/flash.nvim', + event = 'VeryLazy', + ---@type Flash.Config + opts = {}, + keys = { + { + 's', + mode = { 'n', 'x', 'o' }, + function() + -- default options: exact mode, multi window, all directions, with a backdrop + require('flash').jump() + end, + }, + { + 'S', + mode = { 'n', 'o', 'x' }, + function() + require('flash').treesitter() + end, + }, + }, +}