diff --git a/modules/nixvim/editing.nix b/modules/nixvim/editing.nix index 5f3358d..0819730 100644 --- a/modules/nixvim/editing.nix +++ b/modules/nixvim/editing.nix @@ -3,9 +3,7 @@ { plugins.sleuth.enable = true; plugins.nvim-surround.enable = true; - plugins.flash = { - enable = true; - }; + plugins.flash.enable = true; plugins.blink-pairs = { enable = true; @@ -64,7 +62,8 @@ ]; } { - event = [ "BufReadPost" ]; + event = [ "FileType" ]; + pattern = "qf"; callback.__raw = /* lua */ '' function() vim.keymap.set("n", "", "", { buffer = true }) diff --git a/modules/nixvim/keybindings.nix b/modules/nixvim/keybindings.nix index f7d6815..7c2540d 100644 --- a/modules/nixvim/keybindings.nix +++ b/modules/nixvim/keybindings.nix @@ -123,13 +123,7 @@ "o" ]; key = ""; - action.__raw = /* lua */ '' - function() - if vim.bo.filetype ~= "qf" then - require("flash").jump() - end - end - ''; + action.__raw = /* lua */ ''function() require("flash").jump() end''; } ]; }