From 4473056bf301e69b505b9f775eecbc21fdd948b5 Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Tue, 13 Oct 2026 15:42:14 +0200 Subject: [PATCH] feat(neovim): remove lazy loading --- home-manager/base/nixvim/plugins/blink.nix | 11 ++++++++- home-manager/base/nixvim/plugins/fmt.nix | 24 ++++++++----------- .../base/nixvim/plugins/which-key.nix | 8 +------ 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/home-manager/base/nixvim/plugins/blink.nix b/home-manager/base/nixvim/plugins/blink.nix index 9b3a6ad..996faf4 100644 --- a/home-manager/base/nixvim/plugins/blink.nix +++ b/home-manager/base/nixvim/plugins/blink.nix @@ -5,7 +5,16 @@ blink-pairs.enable = true; blink-cmp = { enable = true; - settings.signature.enabled = true; + settings = { + signature.enabled = true; + keymap = { + preset = "default"; + "" = [ + "accept" + "fallback" + ]; + }; + }; }; }; }; diff --git a/home-manager/base/nixvim/plugins/fmt.nix b/home-manager/base/nixvim/plugins/fmt.nix index aac6896..f2dec16 100644 --- a/home-manager/base/nixvim/plugins/fmt.nix +++ b/home-manager/base/nixvim/plugins/fmt.nix @@ -3,22 +3,18 @@ programs.nixvim = { opts.formatexpr = "v:lua.require'conform'.formatexpr()"; + keymaps = [ + { + key = "f"; + action.__raw = '' + function() require 'conform'.format { async = true } end + ''; + options.desc = "Format Buffer"; + } + ]; + plugins.conform-nvim = { enable = true; - lazyLoad.enable = true; - lazyLoad.settings = { - event = "BufWritePre"; - cmd = "ConformInfo"; - keys = [ - { - __unkeyed-1 = "f"; - __unkeyed-2.__raw = '' - function() require 'conform'.format { async = true } end - ''; - desc = "Format Buffer"; - } - ]; - }; settings = { default_format_opts.lsp_format = "fallback"; format_on_save = { diff --git a/home-manager/base/nixvim/plugins/which-key.nix b/home-manager/base/nixvim/plugins/which-key.nix index 40a4a2a..4f65cc9 100644 --- a/home-manager/base/nixvim/plugins/which-key.nix +++ b/home-manager/base/nixvim/plugins/which-key.nix @@ -1,9 +1,3 @@ { - programs.nixvim.plugins.which-key = { - enable = true; - lazyLoad = { - enable = true; - settings.event = "VimEnter"; - }; - }; + programs.nixvim.plugins.which-key.enable = true; }