From 031ced11bb03777dcfb36cbd2060ae2e9c3a4418 Mon Sep 17 00:00:00 2001 From: tannerlp Date: Sun, 6 Apr 2025 20:07:40 -0400 Subject: [PATCH] put neogen mappings in a sane place --- init.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 88843ef1..ee8ba851 100644 --- a/init.lua +++ b/init.lua @@ -168,7 +168,14 @@ require('lazy').setup({ { 'danymat/neogen', - config = true, + config = function() + require('neogen').setup {} + + vim.keymap.set('n', 'k', require('neogen').generate, { + noremap = true, + silent = true, + }) + end, -- Uncomment next line if you want to follow only stable versions -- version = "*" }, @@ -367,10 +374,6 @@ require('lazy').setup({ }) end, { desc = '[/] Fuzzily search in current buffer' }) - vim.keymap.set('n', 'k', require('neogen').generate, { - noremap = true, - silent = true, - }) -- It's also possible to pass additional configuration options. -- See `:help telescope.builtin.live_grep()` for information about particular keys vim.keymap.set('n', 's/', function()