Compare commits

..

1 commit

Author SHA1 Message Date
5563238f0a
fix: reduce size of config
All checks were successful
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 2s
/ check (nvimNoBundledBins) (push) Successful in 4s
/ check (nvimNoLsp) (push) Successful in 5s
/ check (nvimNoTSGrammars) (push) Successful in 6s
/ check (treefmt) (push) Successful in 3s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 1s
/ report-size (push) Successful in 4s
And add more knobs to further reduce the config size.
2025-02-16 23:41:33 +01:00
3 changed files with 15 additions and 17 deletions

View file

@ -72,7 +72,7 @@ in
scripts = builtins.attrValues { inherit (pkgs.mpvScripts) uosc thumbfast; }; scripts = builtins.attrValues { inherit (pkgs.mpvScripts) uosc thumbfast; };
}; };
# Text editor # Text editor
nvim.clipboard.providers.wl-copy.enable = lib.mkDefault true; nixvim.clipboard.providers.wl-copy.enable = lib.mkDefault true;
# Status bar # Status bar
waybar = { waybar = {
enable = true; enable = true;

View file

@ -7,7 +7,6 @@
let let
inherit (helpers) mkRaw; inherit (helpers) mkRaw;
cfg = config.jhome.nvim; cfg = config.jhome.nvim;
dev = cfg.dev.enable;
in in
{ {
config.keymaps = config.keymaps =
@ -202,21 +201,21 @@ in
''; '';
options.desc = "Find Quickfix"; options.desc = "Find Quickfix";
} }
# Nvim Silicon
{
mode = "v";
key = "<leader>sc";
action =
mkRaw
# lua
''
require('nvim-silicon').clip
'';
options.desc = "Snap Code (to clipboard)";
}
] ]
++ lib.optional dev { # Nvim Silicon
++ lib.optional (!cfg.reduceSize) {
mode = "v";
key = "<leader>sc";
action =
mkRaw
# lua
''
require('nvim-silicon').clip
'';
options.desc = "Snap Code (to clipboard)";
}
++ lib.optional cfg.dev.enable {
mode = "n"; mode = "n";
key = "<leader>w"; key = "<leader>w";
action = action =

View file

@ -81,7 +81,6 @@ in
(lib.mkIf (!cfg.reduceSize) { (lib.mkIf (!cfg.reduceSize) {
extraPlugins = [ extraPlugins.nvim-silicon ]; extraPlugins = [ extraPlugins.nvim-silicon ];
extraPackages = [ pkgs.silicon ]; extraPackages = [ pkgs.silicon ];
extraConfigLua = extraConfigLua =
# lua # lua
'' ''