Reorderd
This commit is contained in:
20
home/neovim/live-server.nix
Normal file
20
home/neovim/live-server.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ 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)";
|
||||
}
|
||||
];
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
nodePackages.browser-sync
|
||||
biome
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user