users/foo-dogsquared/programs: update editor configs

This commit is contained in:
Gabriel Arazas 2024-12-27 10:53:42 +08:00
parent 90712b8c32
commit 86faa62f42
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 8 additions and 21 deletions

View File

@ -17,7 +17,7 @@ in
config = lib.mkIf cfg.enable {
programs.emacs = {
enable = true;
package = pkgs.emacs30;
package = pkgs.emacs;
extraPackages = epkgs: with epkgs; [
org-noter-pdftools
org-pdftools

View File

@ -22,21 +22,11 @@ in
enable = true;
};
plugins.telescope.keymaps = lib.mkMerge [
(lib.mkIf telescopeExtensions.frecency.enable {
"<leader>fp" = {
mode = "n";
options.desc = "List projects";
action = helpers.mkRaw "require('telescope').extensions.project.project{}";
};
})
(lib.mkIf telescopeExtensions.live-grep-args.enable {
"<leader>fG" = {
mode = "n";
options.desc = "Live grep (with args) for the whole project";
action = helpers.mkRaw "require('telescope').extensions.live_grep_args.live_grep_args";
};
})
];
keymaps =
lib.optionals telescopeExtensions.live-grep-args.enable (lib.singleton {
mode = "n";
key = "<leader>fG";
options.desc = "Live grep (with args) for the whole project";
action = helpers.mkRaw "require('telescope').extensions.live_grep_args.live_grep_args";
});
}

View File

@ -34,9 +34,6 @@ in
]
++ lib.optionals userCfg.programs.browsers.firefox.enable [
firefox-devtools.vscode-firefox-debug
]
++ lib.optionals userCfg.programs.browsers.edge.enable [
#ms-edgedevtools.vscode-edge-devtools
];
userSettings = {