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;
|
efiSupport = true;
|
||||||
configurationLimit = 10;
|
configurationLimit = 10;
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
# extraEntriesBeforeNixOS = true; # still primarily using void
|
|
||||||
extraEntries = ''
|
extraEntries = ''
|
||||||
menuentry "Void" {
|
menuentry "Void" {
|
||||||
search --set=void --fs-uuid 987518fa-8ea0-49a6-b1e5-1fed4e4ae50f
|
search --set=void --fs-uuid 987518fa-8ea0-49a6-b1e5-1fed4e4ae50f
|
||||||
|
|
|
@ -10,43 +10,26 @@
|
||||||
|
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = inputs.helix.packages.${pkgs.system}.default;
|
||||||
# add the following packages to helix's path
|
extraPackages = with pkgs; [
|
||||||
package = inputs.helix.packages.${pkgs.system}.default.overrideAttrs (self: {
|
clang-tools
|
||||||
makeWrapperArgs = with pkgs;
|
marksman
|
||||||
self.makeWrapperArgs
|
nil
|
||||||
or []
|
nodePackages.bash-language-server
|
||||||
++ [
|
shellcheck
|
||||||
"--suffix"
|
java-language-server
|
||||||
"PATH"
|
texlab
|
||||||
":"
|
tectonic
|
||||||
(lib.makeBinPath [
|
zathura
|
||||||
clang-tools
|
];
|
||||||
marksman
|
|
||||||
nil
|
|
||||||
nodePackages.bash-language-server
|
|
||||||
shellcheck
|
|
||||||
java-language-server
|
|
||||||
texlab
|
|
||||||
tectonic
|
|
||||||
zathura
|
|
||||||
])
|
|
||||||
];
|
|
||||||
});
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
theme = "rose_pine_moon";
|
theme = "catppuccin_frappe";
|
||||||
editor = {
|
editor = {
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
lsp.display-messages = true;
|
lsp.display-messages = true;
|
||||||
scrolloff = 10;
|
scrolloff = 10;
|
||||||
middle-click-paste = false;
|
middle-click-paste = false;
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
cursor-shape = {
|
|
||||||
insert = "bar";
|
|
||||||
normal = "block";
|
|
||||||
select = "block";
|
|
||||||
};
|
|
||||||
auto-format = false;
|
auto-format = false;
|
||||||
idle-timeout = 400;
|
idle-timeout = 400;
|
||||||
color-modes = true;
|
color-modes = true;
|
||||||
|
|
|
@ -5,44 +5,20 @@
|
||||||
}: {
|
}: {
|
||||||
programs.helix.languages = {
|
programs.helix.languages = {
|
||||||
language = [
|
language = [
|
||||||
# {
|
|
||||||
# name = "bash";
|
|
||||||
# auto-format = false;
|
|
||||||
# formatter = {
|
|
||||||
# command = "${pkgs.shfmt}/bin/shfmt";
|
|
||||||
# args = ["-i" "2"];
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
|
|
||||||
{
|
|
||||||
name = "java";
|
|
||||||
language-servers = ["java-language-server"];
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "latex";
|
name = "latex";
|
||||||
indent.tab-width = 2;
|
indent = {
|
||||||
indent.unit = "\t";
|
tab-width = 2;
|
||||||
|
unit = "\t";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
language-server = {
|
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 = {
|
nil = {
|
||||||
# command = lib.getExe pkgs.nil;
|
|
||||||
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
||||||
};
|
};
|
||||||
|
|
||||||
texlab = {
|
texlab = {
|
||||||
# command = "${pkgs.texlab}/bin/texlab";
|
|
||||||
config.texlab = {
|
config.texlab = {
|
||||||
forwardSearch.executable = "zathura";
|
forwardSearch.executable = "zathura";
|
||||||
forwardSearch.args = ["--synctex-forward" "%l:1:%f" "%p"];
|
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
|
dunst
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
|
sway-contrib.grimshot
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|
|
@ -252,7 +252,7 @@ bindsym $mod+r mode "resize"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# Screenshot
|
# 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
|
# Player
|
||||||
|
|
Loading…
Reference in a new issue