{ 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; }; web-devicons.enable = true; }; keymapsOnEvents = { LspAttach = [ { key = "q"; action = "Lspsaga code_action"; options.desc = "Quickfix"; options.buffer = true; } { key = "gd"; action = "Lspsaga goto_definition"; options.desc = "Goto Definition"; options.buffer = true; } { key = "r"; action = "Lspsaga rename"; options.desc = "Rename"; options.buffer = true; } { key = "K"; action = "Lspsaga hover_doc"; options.desc = "Hover"; options.buffer = true; } ]; }; }; }