From 021a7dae5b27d1c609a2e021cf813dc00eda0e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 22 Nov 2024 16:00:54 +0100 Subject: [PATCH] feat(nvim): simplify keybinds --- modules/programs/nvim/new_plugins/conform.nix | 2 +- modules/programs/nvim/new_plugins/lspsaga.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/programs/nvim/new_plugins/conform.nix b/modules/programs/nvim/new_plugins/conform.nix index a8b94f3..7e3ca5b 100644 --- a/modules/programs/nvim/new_plugins/conform.nix +++ b/modules/programs/nvim/new_plugins/conform.nix @@ -66,7 +66,7 @@ in "conform.nvim" ]; keymaps = [ - { key = "cf"; action.__raw = ''function() require("conform").format() end''; options.desc = "Format current file"; } + { key = "="; action.__raw = ''function() require("conform").format() end''; options.desc = "Format current file"; } ]; }; diff --git a/modules/programs/nvim/new_plugins/lspsaga.nix b/modules/programs/nvim/new_plugins/lspsaga.nix index 6b60349..b47f969 100644 --- a/modules/programs/nvim/new_plugins/lspsaga.nix +++ b/modules/programs/nvim/new_plugins/lspsaga.nix @@ -16,9 +16,9 @@ in keymapsOnEvents = { LspAttach = [ { - key = "cc"; + key = "q"; action = "Lspsaga code_action"; - options.desc = "Code Action"; + options.desc = "Quickfix"; options.buffer = true; } { @@ -28,7 +28,7 @@ in options.buffer = true; } { - key = "cr"; + key = "r"; action = "Lspsaga rename"; options.desc = "Rename"; options.buffer = true;