From 1dce67746b01f1cd5f70508e4ecdc65e176917dc Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 21 Feb 2023 14:26:41 +0100 Subject: [PATCH] Only add eglot bindings in modes deriving from prog-mode --- modules/development/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/development/default.nix b/modules/development/default.nix index 44728311..20c91b7f 100644 --- a/modules/development/default.nix +++ b/modules/development/default.nix @@ -35,11 +35,14 @@ (use-package eglot :general (lmap + :keymaps 'prog-mode-map "SPC s" '(eglot :which-key "Add buffer to eglot") "SPC f" '(eglot-format :which-key "Format region") "SPC F" '(eglot-format :which-key "Format buffer") "SPC r" '(eglot-rename :which-key "Rename symbol") "SPC a" '(eglot-code-actions :which-key "Relevant local actions") + "SPC n" '(flymake-goto-next-error :which-key "Next error") + "SPC p" '(flymake-goto-prev-error :which-key "Previous error") ) :config ;;; eclipse-jdt breaks the spec which in turn breaks code actions