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 { config = lib.mkIf cfg.enable {
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = pkgs.emacs30; package = pkgs.emacs;
extraPackages = epkgs: with epkgs; [ extraPackages = epkgs: with epkgs; [
org-noter-pdftools org-noter-pdftools
org-pdftools org-pdftools

View File

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

View File

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