From b5184dcc4fb96f70def6d1b3aed3d637ecf3b7b6 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 21 May 2024 22:12:12 +0100 Subject: [PATCH] Use FixCursorHold-nvim --- home/nixvim/default.nix | 2 +- home/nixvim/neotest.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/home/nixvim/default.nix b/home/nixvim/default.nix index dbec42a0..0d511a57 100644 --- a/home/nixvim/default.nix +++ b/home/nixvim/default.nix @@ -88,7 +88,7 @@ in { wildmode = ["list:longest" "list:full"]; wrap = false; winwidth = 80; - updatetime = 50; + updatetime = 4000; switchbuf = ["useopen" "uselast"]; conceallevel = 0; shortmess = "tToOFIWa"; diff --git a/home/nixvim/neotest.nix b/home/nixvim/neotest.nix index 2ae29555..b5b687e3 100644 --- a/home/nixvim/neotest.nix +++ b/home/nixvim/neotest.nix @@ -1,4 +1,5 @@ { + pkgs, lib, config, ... @@ -30,6 +31,12 @@ in { }; settings.output_panel.open = "tabnew"; }; + globals = { + cursorhold_updatetime = 100; + }; + extraPlugins = with pkgs.vimPlugins; [ + FixCursorHold-nvim + ]; keymaps = [ (keymap { key = "tf";