{ config, lib, pkgs, inputs, ... }: let inherit (lib) mkEnableOption mkIf readFile; in { home-manager.users.moritz.programs.nixvim = { plugins.lspsaga = { enable = true; codeAction.keys.quit = ""; lightbulb.virtualText = false; }; keymapsOnEvents = { LspAttach = [ { key = "cc"; action = "Lspsaga code_action"; options.desc = "Code Action"; options.buffer = true; } { key = "gd"; action = "Lspsaga goto_definition"; options.desc = "Goto Definition"; options.buffer = true; } { key = "cr"; action = "Lspsaga rename"; options.desc = "Rename"; options.buffer = true; } { key = "K"; action = "Lspsaga hover_doc"; options.desc = "Hover"; options.buffer = true; } ]; }; }; }