switch home-manager option to add extra packages to helix
This commit is contained in:
parent
ecdf17b2c9
commit
13f73b5c2b
|
@ -24,7 +24,6 @@
|
|||
efiSupport = true;
|
||||
configurationLimit = 10;
|
||||
device = "nodev";
|
||||
# extraEntriesBeforeNixOS = true; # still primarily using void
|
||||
extraEntries = ''
|
||||
menuentry "Void" {
|
||||
search --set=void --fs-uuid 987518fa-8ea0-49a6-b1e5-1fed4e4ae50f
|
||||
|
|
|
@ -10,17 +10,8 @@
|
|||
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
|
||||
# add the following packages to helix's path
|
||||
package = inputs.helix.packages.${pkgs.system}.default.overrideAttrs (self: {
|
||||
makeWrapperArgs = with pkgs;
|
||||
self.makeWrapperArgs
|
||||
or []
|
||||
++ [
|
||||
"--suffix"
|
||||
"PATH"
|
||||
":"
|
||||
(lib.makeBinPath [
|
||||
package = inputs.helix.packages.${pkgs.system}.default;
|
||||
extraPackages = with pkgs; [
|
||||
clang-tools
|
||||
marksman
|
||||
nil
|
||||
|
@ -30,23 +21,15 @@
|
|||
texlab
|
||||
tectonic
|
||||
zathura
|
||||
])
|
||||
];
|
||||
});
|
||||
|
||||
settings = {
|
||||
theme = "rose_pine_moon";
|
||||
theme = "catppuccin_frappe";
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
lsp.display-messages = true;
|
||||
scrolloff = 10;
|
||||
middle-click-paste = false;
|
||||
cursorline = true;
|
||||
cursor-shape = {
|
||||
insert = "bar";
|
||||
normal = "block";
|
||||
select = "block";
|
||||
};
|
||||
auto-format = false;
|
||||
idle-timeout = 400;
|
||||
color-modes = true;
|
||||
|
|
|
@ -5,44 +5,20 @@
|
|||
}: {
|
||||
programs.helix.languages = {
|
||||
language = [
|
||||
# {
|
||||
# name = "bash";
|
||||
# auto-format = false;
|
||||
# formatter = {
|
||||
# command = "${pkgs.shfmt}/bin/shfmt";
|
||||
# args = ["-i" "2"];
|
||||
# };
|
||||
# }
|
||||
|
||||
{
|
||||
name = "java";
|
||||
language-servers = ["java-language-server"];
|
||||
}
|
||||
|
||||
{
|
||||
name = "latex";
|
||||
indent.tab-width = 2;
|
||||
indent.unit = "\t";
|
||||
indent = {
|
||||
tab-width = 2;
|
||||
unit = "\t";
|
||||
};
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
# bash-language-server = {
|
||||
# command = "${pkgs.nodePackages.bash-language-server}/bin/bash-language-server";
|
||||
# args = ["start"];
|
||||
# };
|
||||
|
||||
# clangd = {
|
||||
# command = "${pkgs.clang-tools}/bin/clangd";
|
||||
# clangd.fallbackFlags = ["-std=c++2b"];
|
||||
# };
|
||||
|
||||
nil = {
|
||||
# command = lib.getExe pkgs.nil;
|
||||
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
||||
};
|
||||
|
||||
texlab = {
|
||||
# command = "${pkgs.texlab}/bin/texlab";
|
||||
config.texlab = {
|
||||
forwardSearch.executable = "zathura";
|
||||
forwardSearch.args = ["--synctex-forward" "%l:1:%f" "%p"];
|
||||
|
@ -66,10 +42,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# java-language-server = {
|
||||
# command = "${pkgs.java-language-server}/bin/java-language-server";
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
dunst
|
||||
grim
|
||||
slurp
|
||||
sway-contrib.grimshot
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
|
|
|
@ -252,7 +252,7 @@ bindsym $mod+r mode "resize"
|
|||
# }
|
||||
|
||||
# Screenshot
|
||||
bindsym Print exec IMG=~/Pictures/screenshots/$(date | sed "s/\s/-/g" | sed "s/--/-/g").png&&grim -g "$(slurp)" $IMG && cat $IMG | wl-copy
|
||||
bindsym Print exec grimshot copy area
|
||||
|
||||
#
|
||||
# Player
|
||||
|
|
Loading…
Reference in a new issue