From 4fdfaa8eff662e5adee124ec0a4e90123f64dd85 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 08:24:33 +0000 Subject: [PATCH 1/4] Initial plan From ef2b7809a793759e9ea442ff70ed3d8b58ab92f5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 08:29:51 +0000 Subject: [PATCH 2/4] Add traces.vim plugin and fix comment style Co-authored-by: gignsky <13265812+gignsky@users.noreply.github.com> --- config/core/options.nix | 2 +- plugins/core/default.nix | 1 + plugins/core/traces-vim.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 plugins/core/traces-vim.nix diff --git a/config/core/options.nix b/config/core/options.nix index 749beac..a9eeb5a 100644 --- a/config/core/options.nix +++ b/config/core/options.nix @@ -13,7 +13,7 @@ gdefault = true; ignorecase = true; incsearch = true; - inccommand = "split"; #Adds splitting ability for complex find and replace with exclusions + inccommand = "split"; # Enable live preview for substitute commands autoindent = true; expandtab = true; diff --git a/plugins/core/default.nix b/plugins/core/default.nix index 2ed607f..cdbbf55 100644 --- a/plugins/core/default.nix +++ b/plugins/core/default.nix @@ -1,5 +1,6 @@ { imports = [ ./blink-cmp.nix + ./traces-vim.nix ]; } diff --git a/plugins/core/traces-vim.nix b/plugins/core/traces-vim.nix new file mode 100644 index 0000000..3eb4f5a --- /dev/null +++ b/plugins/core/traces-vim.nix @@ -0,0 +1,12 @@ +# traces.vim - Range, pattern and substitute preview for Vim +# Provides live preview for :substitute, :global, and other Ex commands +# https://github.com/markonm/traces.vim + +{ pkgs, ... }: +{ + config.vim.extraPlugins = { + traces-vim = { + package = pkgs.vimPlugins.traces-vim; + }; + }; +} From 72fa86fd654385b613dbc90d6cc6a2e4695cd5be Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 09:11:07 +0000 Subject: [PATCH 3/4] Remove inccommand to fix traces.vim highlighting conflict Co-authored-by: gignsky <13265812+gignsky@users.noreply.github.com> --- config/core/options.nix | 1 - plugins/core/traces-vim.nix | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/core/options.nix b/config/core/options.nix index a9eeb5a..d80805a 100644 --- a/config/core/options.nix +++ b/config/core/options.nix @@ -13,7 +13,6 @@ gdefault = true; ignorecase = true; incsearch = true; - inccommand = "split"; # Enable live preview for substitute commands autoindent = true; expandtab = true; diff --git a/plugins/core/traces-vim.nix b/plugins/core/traces-vim.nix index 3eb4f5a..d11239c 100644 --- a/plugins/core/traces-vim.nix +++ b/plugins/core/traces-vim.nix @@ -1,6 +1,9 @@ # traces.vim - Range, pattern and substitute preview for Vim # Provides live preview for :substitute, :global, and other Ex commands # https://github.com/markonm/traces.vim +# +# Note: This plugin automatically disables inccommand internally to avoid conflicts. +# Do not set inccommand when using traces.vim, as they cannot work together. { pkgs, ... }: { From 67a4368ad53a9b6cea668029ec99af6444fca452 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 11:38:01 +0000 Subject: [PATCH 4/4] Replace traces.vim with live-command.nvim for :g! preview support Co-authored-by: gignsky <13265812+gignsky@users.noreply.github.com> --- plugins/core/default.nix | 2 +- plugins/core/live-command-nvim.nix | 19 +++++++++++++++++++ plugins/core/traces-vim.nix | 15 --------------- 3 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 plugins/core/live-command-nvim.nix delete mode 100644 plugins/core/traces-vim.nix diff --git a/plugins/core/default.nix b/plugins/core/default.nix index cdbbf55..6e1fa2f 100644 --- a/plugins/core/default.nix +++ b/plugins/core/default.nix @@ -1,6 +1,6 @@ { imports = [ ./blink-cmp.nix - ./traces-vim.nix + ./live-command-nvim.nix ]; } diff --git a/plugins/core/live-command-nvim.nix b/plugins/core/live-command-nvim.nix new file mode 100644 index 0000000..995ee2a --- /dev/null +++ b/plugins/core/live-command-nvim.nix @@ -0,0 +1,19 @@ +# live-command.nvim - Preview commands in Neovim +# Provides live preview for arbitrary Ex commands including :g!, :s, and more +# https://github.com/smjonas/live-command.nvim + +{ pkgs, ... }: +{ + config.vim.extraPlugins = { + live-command-nvim = { + package = pkgs.vimPlugins.live-command-nvim; + setup = '' + require("live-command").setup { + commands = { + Norm = { cmd = "norm" }, + }, + } + ''; + }; + }; +} diff --git a/plugins/core/traces-vim.nix b/plugins/core/traces-vim.nix deleted file mode 100644 index d11239c..0000000 --- a/plugins/core/traces-vim.nix +++ /dev/null @@ -1,15 +0,0 @@ -# traces.vim - Range, pattern and substitute preview for Vim -# Provides live preview for :substitute, :global, and other Ex commands -# https://github.com/markonm/traces.vim -# -# Note: This plugin automatically disables inccommand internally to avoid conflicts. -# Do not set inccommand when using traces.vim, as they cannot work together. - -{ pkgs, ... }: -{ - config.vim.extraPlugins = { - traces-vim = { - package = pkgs.vimPlugins.traces-vim; - }; - }; -}