From ab3a104a858080a8bbda436e0a828b456390e6d0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 11 Dec 2025 18:37:23 +0100 Subject: [PATCH] nvim: Move flash.nvim and spellsync out of base modules Since flash, while integral to my day-to-day editing is not about providing a _base_ to other plugins, but editing, it moved to the editing module. Spellsync is only really useful in a prose context in my workflows, so this is where it went. --- nvim/.config/nvim/lua/modules/base.lua | 40 ----------------------- nvim/.config/nvim/lua/modules/editing.lua | 38 +++++++++++++++++++++ nvim/.config/nvim/lua/modules/prose.lua | 2 ++ 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/nvim/.config/nvim/lua/modules/base.lua b/nvim/.config/nvim/lua/modules/base.lua index 988eb8d..68ac21f 100644 --- a/nvim/.config/nvim/lua/modules/base.lua +++ b/nvim/.config/nvim/lua/modules/base.lua @@ -43,44 +43,6 @@ return { }, }, }, - -- jump between letters with improved fFtT quicksearch, mimics sneak - { - "folke/flash.nvim", - event = "VeryLazy", - opts = { - modes = { - search = { - enabled = false, - }, - }, - }, - keys = { - { - "s", - mode = { "n", "x" }, - function() - require("flash").jump() - end, - desc = "Flash", - }, - { - "S", - mode = { "n", "x", "o" }, - function() - require("flash").treesitter() - end, - desc = "Flash Treesitter", - }, - { - "r", - mode = "o", - function() - require("flash").remote() - end, - desc = "Remote Flash", - }, - }, - }, -- generic tool installer; automatic external dependency mgmt for neovim -- used in my config for LSPs, formatters and linters @@ -100,8 +62,6 @@ return { { "vm", ":Mason", desc = "Mason" }, }, }, - -- personal dict improvements for git sync - { "micarmst/vim-spellsync", event = "VeryLazy" }, { "folke/which-key.nvim", event = "CursorHold", diff --git a/nvim/.config/nvim/lua/modules/editing.lua b/nvim/.config/nvim/lua/modules/editing.lua index 2c37409..e73c6ec 100644 --- a/nvim/.config/nvim/lua/modules/editing.lua +++ b/nvim/.config/nvim/lua/modules/editing.lua @@ -2,6 +2,44 @@ return { -- surround things with other things using ys/cs/ds { "kylechui/nvim-surround", config = true, event = { "CursorHold", "InsertEnter" } }, + -- jump between letters with improved fFtT quicksearch, mimics sneak + { + "folke/flash.nvim", + event = "VeryLazy", + opts = { + modes = { + search = { + enabled = false, + }, + }, + }, + keys = { + { + "s", + mode = { "n", "x" }, + function() + require("flash").jump() + end, + desc = "Flash", + }, + { + "S", + mode = { "n", "x", "o" }, + function() + require("flash").treesitter() + end, + desc = "Flash Treesitter", + }, + { + "r", + mode = "o", + function() + require("flash").remote() + end, + desc = "Remote Flash", + }, + }, + }, -- extend the ^x / ^a possibilities to dates, hex, alphabets, markdown headers -- REMAPPED TO C-X / C-S for decrement/increment { diff --git a/nvim/.config/nvim/lua/modules/prose.lua b/nvim/.config/nvim/lua/modules/prose.lua index 0d277f3..3c2bed1 100644 --- a/nvim/.config/nvim/lua/modules/prose.lua +++ b/nvim/.config/nvim/lua/modules/prose.lua @@ -340,6 +340,8 @@ local prose_plugs = { dependencies = { "nvim-treesitter/nvim-treesitter" }, event = { "BufEnter *.mdx" }, -- since the plug itself defines mdx ft }, + -- personal dict improvements for git sync + { "micarmst/vim-spellsync", event = "VeryLazy" }, } return prose_plugs