editors: remove old nix files
This commit is contained in:
parent
632155b246
commit
a09fade6d2
2 changed files with 0 additions and 128 deletions
|
@ -1,63 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.modules.system.programs.editors.emacs;
|
|
||||||
inherit (config.modules.other.system) username;
|
|
||||||
inherit (lib) mkIf;
|
|
||||||
|
|
||||||
# Taken from outfoxxed since figuring this out is really annoying.
|
|
||||||
emacsOverlay =
|
|
||||||
pkgs.appendOverlays
|
|
||||||
(with inputs.emacs-overlay.overlays; [
|
|
||||||
emacs
|
|
||||||
package
|
|
||||||
]);
|
|
||||||
|
|
||||||
customEmacs = with emacsOverlay; ((emacsPackagesFor
|
|
||||||
(emacs29-pgtk.override {withNativeCompilation = true;}))
|
|
||||||
.emacsWithPackages (epkgs:
|
|
||||||
with epkgs; [
|
|
||||||
vterm
|
|
||||||
]));
|
|
||||||
in {
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.variables.PATH = ["$XDG_CONFIG_HOME/emacs/bin"];
|
|
||||||
home-manager.users.${username} = {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
# needed by native-comp
|
|
||||||
binutils
|
|
||||||
# Emacs itself
|
|
||||||
customEmacs
|
|
||||||
|
|
||||||
# Doom dependencies
|
|
||||||
git
|
|
||||||
ripgrep
|
|
||||||
gnutls
|
|
||||||
|
|
||||||
## Optional dependencies
|
|
||||||
fd # faster projectile indexing
|
|
||||||
imagemagick # for image-dired
|
|
||||||
# (mkIf (config.programs.gnupg.agent.enable)
|
|
||||||
# pinentry-emacs) # in-emacs gnupg prompts
|
|
||||||
zstd # for undo-fu-session/undo-tree compression
|
|
||||||
|
|
||||||
# Module dependencies
|
|
||||||
# :checkers spell
|
|
||||||
(aspellWithDicts (ds: with ds; [de en en-computers en-science]))
|
|
||||||
# :tools editorconfig
|
|
||||||
editorconfig-core-c # per-project style config
|
|
||||||
# :tools lookup & :lang org +roam
|
|
||||||
sqlite
|
|
||||||
];
|
|
||||||
|
|
||||||
services.emacs = {
|
|
||||||
enable = true;
|
|
||||||
package = customEmacs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,65 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.modules.system.programs.editors.helix;
|
|
||||||
inherit (config.modules.other.system) username;
|
|
||||||
inherit (lib) mkIf getExe makeBinPath;
|
|
||||||
in {
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home-manager.users.${username} = {
|
|
||||||
programs.helix = {
|
|
||||||
enable = true;
|
|
||||||
# thanks fufexan, this is great!
|
|
||||||
package = pkgs.helix.overrideAttrs (previousAttrs: {
|
|
||||||
makeWrapperArgs = with pkgs;
|
|
||||||
previousAttrs.makeWrapperArgs
|
|
||||||
or []
|
|
||||||
++ [
|
|
||||||
"--suffix"
|
|
||||||
"PATH"
|
|
||||||
":"
|
|
||||||
(makeBinPath [
|
|
||||||
clang-tools
|
|
||||||
marksman
|
|
||||||
nil
|
|
||||||
bash-language-server
|
|
||||||
shellcheck
|
|
||||||
# typst-lsp
|
|
||||||
])
|
|
||||||
];
|
|
||||||
});
|
|
||||||
settings = {
|
|
||||||
editor = {
|
|
||||||
indent-guides.render = true;
|
|
||||||
lsp.display-inlay-hints = true;
|
|
||||||
line-number = "relative";
|
|
||||||
mouse = true;
|
|
||||||
bufferline = "multiple";
|
|
||||||
soft-wrap.enable = true;
|
|
||||||
lsp.display-messages = true;
|
|
||||||
cursor-shape = {insert = "bar";};
|
|
||||||
statusline.left = ["mode" "spinner" "version-control" "file-name"];
|
|
||||||
};
|
|
||||||
keys.normal = {
|
|
||||||
C-g = [":new" ":insert-output lazygit" ":buffer-close!" ":redraw"];
|
|
||||||
esc = ["collapse_selection" "keep_primary_selection"];
|
|
||||||
A-H = "goto_previous_buffer";
|
|
||||||
A-L = "goto_next_buffer";
|
|
||||||
A-w = ":buffer-close";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
languages = {
|
|
||||||
language-server = {
|
|
||||||
nil = {
|
|
||||||
command = getExe pkgs.nil;
|
|
||||||
config.nil.formatting.command = ["${getExe pkgs.alejandra}" "-q"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue