Fixed build issues by including guard rails; Merged configs

This commit is contained in:
2026-04-05 11:41:53 +02:00
parent 3e1965f0e8
commit 45f853b376
25 changed files with 1034 additions and 133 deletions

View File

@@ -15,13 +15,13 @@
./avante.nix
./openscad.nix
./molten.nix
./live-server.nix
./which-key.nix
];
home.packages = with pkgs; [
nil
biome
gdb
];
programs.nixvim = {

View File

@@ -35,7 +35,6 @@
lua54Packages.luacheck
statix
ruff
nodePackages.eslint
clippy
];
};

View File

@@ -1,14 +1,17 @@
{ pkgs, ... }: {
# TODO: Remove; nodePackages is unmaintained inside nixpkgs
{ pkgs, ... }:
{
# Live Server: Auto-reload browser for web development
# Uses browser-sync for live reload functionality
programs.nixvim = {
keymaps = [{
mode = "n";
key = "<leader>ls";
action =
"<cmd>terminal browser-sync start --server --files '*.html, *.css, *.js' --no-notify<cr>";
options.desc = "Start live server (browser-sync)";
}];
keymaps = [
{
mode = "n";
key = "<leader>ls";
action = "<cmd>terminal browser-sync start --server --files '*.html, *.css, *.js' --no-notify<cr>";
options.desc = "Start live server (browser-sync)";
}
];
extraPackages = with pkgs; [ nodePackages.browser-sync ];
};

View File

@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
# OpenSCAD: 3D modeling language support with syntax highlighting,
# cheatsheet, snippets, offline manual and fuzzy help
programs.nixvim = {
@@ -8,13 +9,12 @@
settings = {
fuzzy_finder = "fzf";
auto_open = true;
cheatsheet_toggle_key = "<leader>os";
cheatsheet_toggle_key = "<Enter>";
default_mappings = true;
exec_openscad_trig_key = "<leader>oo";
help_manual_trig_key = "<leader>om";
help_trig_key = "<leader>oh";
top_toggle = "<leader>oc";
exec_openscad_trig_key = "<A-h>";
help_manual_trig_key = "<A-m>";
help_trig_key = "<A-o>";
top_toggle = "<A-c>";
};
};
@@ -25,4 +25,5 @@
fzf
];
};
}