format with prettier formatter :3

This commit is contained in:
foxora 2026-03-03 04:26:35 +00:00
parent 8b1a6aca39
commit 211fa03252
18 changed files with 480 additions and 500 deletions

View file

@ -1,5 +1,4 @@
{ upkgs, ... }:
{
{upkgs, ...}: {
programs.alacritty = {
enable = true;
package = upkgs.alacritty-graphics;

View file

@ -4,13 +4,12 @@
inputs,
mpkgs,
...
}:
let
inherit (inputs.nixcats)
}: let
inherit
(inputs.nixcats)
utils
;
in
{
in {
imports = [
inputs.nixcats.homeModule
];
@ -31,224 +30,220 @@ in
];
# see the packageDefinitions below.
# This says which of those to install.
packageNames = [ "auroranvim" ];
packageNames = ["auroranvim"];
luaPath = "${./.}";
# the .replace vs .merge options are for modules based on existing configurations,
# they refer to how multiple categoryDefinitions get merged together by the module.
# for useage of this section, refer to :h nixCats.flake.outputs.categories
categoryDefinitions.replace =
{
pkgs,
settings,
categories,
extra,
name,
mkNvimPlugin,
...
}@packageDef:
{
lspsAndRuntimeDeps = with pkgs; {
general = [
ripgrep
fd
categoryDefinitions.replace = {
pkgs,
settings,
categories,
extra,
name,
mkNvimPlugin,
...
} @ packageDef: {
lspsAndRuntimeDeps = with pkgs; {
general = [
ripgrep
fd
];
treesitter = [
tree-sitter
];
lang = {
lua = [
lua-language-server
stylua
];
treesitter = [
tree-sitter
nix = [
nil
nix-doc # TODO: i forgot what this is for
alejandra
];
lang = {
lua = [
lua-language-server
stylua
];
nix = [
nil
nix-doc # TODO: i forgot what this is for
alejandra
];
rust = [
cargo
mpkgs.rust-analyzer
# nightly rustfmt has nicer features :3
inputs.fenix.packages.${system}.complete.rustfmt
];
zig = [
zls
];
elixir = [
elixir-ls
];
gleam = [
gleam
];
haskell = [
haskell-language-server
ormolu
];
java = [
jdt-language-server
javaPackages.compiler.openjdk17
javaPackages.compiler.openjdk21
];
protobuf = [
protols
buf
];
};
};
startupPlugins = with pkgs.vimPlugins; {
general = [
lze
plenary-nvim
nvim-notify
nvim-web-devicons
base16-nvim
mini-nvim
rust = [
cargo
mpkgs.rust-analyzer
# nightly rustfmt has nicer features :3
inputs.fenix.packages.${system}.complete.rustfmt
];
treesitter = [
nvim-treesitter-textobjects
nvim-treesitter.withAllGrammars
zig = [
zls
];
elixir = [
elixir-ls
];
gleam = [
gleam
];
haskell = [
haskell-language-server
ormolu
];
java = [
jdt-language-server
javaPackages.compiler.openjdk17
javaPackages.compiler.openjdk21
];
protobuf = [
protols
buf
];
};
optionalPlugins = with pkgs.vimPlugins; {
general = [
];
ui = [
dressing-nvim
];
qol = [
undotree
mini-hipatterns
];
telescope = [
telescope-nvim
telescope-fzf-native-nvim
telescope-ui-select-nvim
];
fyler = [
fyler-nvim
];
lsp = [
nvim-lspconfig
];
completion = [
blink-cmp
nvim-cmp
luasnip
friendly-snippets
cmp_luasnip
cmp-buffer
cmp-path
cmp-nvim-lua
cmp-nvim-lsp
cmp-cmdline
cmp-nvim-lsp-signature-help
cmp-cmdline-history
lspkind-nvim
];
format = [
conform-nvim
];
comment = [
comment-nvim
];
lang = {
java = [
nvim-jdtls
];
};
};
# shared libraries to be added to LD_LIBRARY_PATH
# variable available to nvim runtime
sharedLibraries = {
general = with pkgs; [
# libgit2
];
};
environmentVariables = {
lang = {
rust.lsp = {
# it literally won't see the rust-analyzer provided to it
# if you don't use an envrionment variable to tell it
RUST_ANALYZER_CMD = "${mpkgs.rust-analyzer}/bin/rust-analyzer";
};
elixir.lsp = {
ELIXIR_LS_CMD = "${pkgs.elixir-ls}/scripts/language_server.sh";
};
java.lsp = {
JAVA_HOME = "${pkgs.javaPackages.compiler.openjdk17}";
OPENJDK_17 = "${pkgs.javaPackages.compiler.openjdk17}";
OPENJDK_21 = "${pkgs.javaPackages.compiler.openjdk21}";
};
};
};
extraWrapperArgs = { };
# lists of the functions you would have passed to
# python.withPackages or lua.withPackages
# get the path to this python environment
# in your lua config via
# vim.g.python3_host_prog
# or run from nvim terminal via :!<packagename>-python3
extraPython3Packages = { };
# populates $LUA_PATH and $LUA_CPATH
extraLuaPackages = { };
};
startupPlugins = with pkgs.vimPlugins; {
general = [
lze
plenary-nvim
nvim-notify
nvim-web-devicons
base16-nvim
mini-nvim
];
treesitter = [
nvim-treesitter-textobjects
nvim-treesitter.withAllGrammars
];
};
optionalPlugins = with pkgs.vimPlugins; {
general = [
];
ui = [
dressing-nvim
];
qol = [
undotree
mini-hipatterns
];
telescope = [
telescope-nvim
telescope-fzf-native-nvim
telescope-ui-select-nvim
];
fyler = [
fyler-nvim
];
lsp = [
nvim-lspconfig
];
completion = [
blink-cmp
nvim-cmp
luasnip
friendly-snippets
cmp_luasnip
cmp-buffer
cmp-path
cmp-nvim-lua
cmp-nvim-lsp
cmp-cmdline
cmp-nvim-lsp-signature-help
cmp-cmdline-history
lspkind-nvim
];
format = [
conform-nvim
];
comment = [
comment-nvim
];
lang = {
java = [
nvim-jdtls
];
};
};
# shared libraries to be added to LD_LIBRARY_PATH
# variable available to nvim runtime
sharedLibraries = {
general = with pkgs; [
# libgit2
];
};
environmentVariables = {
lang = {
rust.lsp = {
# it literally won't see the rust-analyzer provided to it
# if you don't use an envrionment variable to tell it
RUST_ANALYZER_CMD = "${mpkgs.rust-analyzer}/bin/rust-analyzer";
};
elixir.lsp = {
ELIXIR_LS_CMD = "${pkgs.elixir-ls}/scripts/language_server.sh";
};
java.lsp = {
JAVA_HOME = "${pkgs.javaPackages.compiler.openjdk17}";
OPENJDK_17 = "${pkgs.javaPackages.compiler.openjdk17}";
OPENJDK_21 = "${pkgs.javaPackages.compiler.openjdk21}";
};
};
};
extraWrapperArgs = {};
# lists of the functions you would have passed to
# python.withPackages or lua.withPackages
# get the path to this python environment
# in your lua config via
# vim.g.python3_host_prog
# or run from nvim terminal via :!<packagename>-python3
extraPython3Packages = {};
# populates $LUA_PATH and $LUA_CPATH
extraLuaPackages = {};
};
# see :help nixCats.flake.outputs.packageDefinitions
packageDefinitions.replace = {
# these are the names of your packages
# you can include as many as you wish.
auroranvim =
{ pkgs, ... }:
{
# they contain a settings set defined above
# see :help nixCats.flake.outputs.settings
settings = {
wrapRc = true;
# IMPORTANT:
# your alias may not conflict with your other packages.
aliases = [
"auravim"
"foxyvim"
"avix"
"fvix"
];
};
# and a set of categories that you want
# (and other information to pass to lua)
categories = {
general = true;
auroranvim = {pkgs, ...}: {
# they contain a settings set defined above
# see :help nixCats.flake.outputs.settings
settings = {
wrapRc = true;
# IMPORTANT:
# your alias may not conflict with your other packages.
aliases = [
"auravim"
"foxyvim"
"avix"
"fvix"
];
};
# and a set of categories that you want
# (and other information to pass to lua)
categories = {
general = true;
ui = true;
qol = true;
telescope = true;
fyler = true;
lsp = true;
completion = true;
treesitter = true;
format = true;
comment = true;
ui = true;
qol = true;
telescope = true;
fyler = true;
lsp = true;
completion = true;
treesitter = true;
format = true;
comment = true;
lang = {
lua = true;
nix = true;
rust = true;
zig = true;
elixir = true;
gleam = true;
haskell = true;
java = true;
protobuf = true;
};
lang = {
lua = true;
nix = true;
rust = true;
zig = true;
elixir = true;
gleam = true;
haskell = true;
java = true;
protobuf = true;
};
};
};
};
};
};

View file

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
imports = [
inputs.nixcord.homeModules.nixcord
];

View file

@ -1,5 +1,4 @@
{ upkgs, ... }:
{
{upkgs, ...}: {
# optional dependencies can be found here:
# https://yazi-rs.github.io/docs/installation/
home.packages = with upkgs; [
@ -24,12 +23,12 @@
mgr.prepend_keymap = [
# drag and drop!!
{
on = [ "<S-c>" ];
on = ["<S-c>"];
run = ''shell "ripdrag -x -a \"$@\"" --confirm'';
}
# copy hovered file to clipboard
{
on = [ "<S-y>" ];
on = ["<S-y>"];
run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list'';
}
];

View file

@ -1,5 +1,4 @@
{ upkgs, ... }:
{
{upkgs, ...}: {
programs.zsh = {
enable = true;
enableCompletion = true;

View file

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
imports = [
inputs.mango.hmModules.mango
];

View file

@ -1,83 +1,78 @@
{ ... }:
{
wayland.windowManager.river =
let
layout = "rivertile";
in
{
enable = true;
xwayland.enable = true;
{...}: {
wayland.windowManager.river = let
layout = "rivertile";
in {
enable = true;
xwayland.enable = true;
settings =
let
main = "Super";
settings = let
main = "Super";
# applications
terminal = "alacritty";
browser = "firefox";
in
{
default-layout = "${layout}";
output-layout = "${layout}";
border-width = 1;
# applications
terminal = "alacritty";
browser = "firefox";
in {
default-layout = "${layout}";
output-layout = "${layout}";
border-width = 1;
spawn = [
"${layout}"
spawn = [
"${layout}"
"awww-daemon"
"waybar"
];
"awww-daemon"
"waybar"
];
map.normal = {
"${main} C" = "close"; # close focused window
"${main}+Alt Delete" = "exit"; # exit river
map.normal = {
"${main} C" = "close"; # close focused window
"${main}+Alt Delete" = "exit"; # exit river
# app launcher
"${main} D" = ''spawn "pkill -x rofi || rofi -show drun -show-icons"'';
"Alt Tab" = ''spawn "pkill -x rofi || rofi -modi window -show window -show-icons"'';
# app launcher
"${main} D" = ''spawn "pkill -x rofi || rofi -show drun -show-icons"'';
"Alt Tab" = ''spawn "pkill -x rofi || rofi -modi window -show window -show-icons"'';
# spawn applications
"${main} T" = ''spawn "${terminal}"'';
"${main} R" = ''spawn "${browser}"'';
# spawn applications
"${main} T" = ''spawn "${terminal}"'';
"${main} R" = ''spawn "${browser}"'';
# move focused view to top of layout stack
"${main} N" = "zoom";
# move focused view to top of layout stack
"${main} N" = "zoom";
# focus next/previous view
"${main} J" = "focus-view previous";
"${main} K" = "focus-view next";
# move to next/previous output
"${main} H" = "focus-output previous";
"${main} L" = "focus-output next";
# focus next/previous view
"${main} J" = "focus-view previous";
"${main} K" = "focus-view next";
# move to next/previous output
"${main} H" = "focus-output previous";
"${main} L" = "focus-output next";
# swap next/previous view
"${main}+Alt J" = "swap previous";
"${main}+Alt K" = "swap next";
# send view to next/previous output
# and switch to that output (wip)
"${main}+Alt H" = "send-to-output previous";
#"${main}+Alt H" = "focus-output previous";
"${main}+Alt L" = "send-to-output next";
#"${main}+Alt L" = "focus-output next";
# swap next/previous view
"${main}+Alt J" = "swap previous";
"${main}+Alt K" = "swap next";
# send view to next/previous output
# and switch to that output (wip)
"${main}+Alt H" = "send-to-output previous";
#"${main}+Alt H" = "focus-output previous";
"${main}+Alt L" = "send-to-output next";
#"${main}+Alt L" = "focus-output next";
# move views
#"${main}+Alt H" = "move left 100";
#"${main}+Alt J" = "move down 100";
#"${main}+Alt K" = "move up 100";
#"${main}+Alt L" = "move right 100";
# move views
#"${main}+Alt H" = "move left 100";
#"${main}+Alt J" = "move down 100";
#"${main}+Alt K" = "move up 100";
#"${main}+Alt L" = "move right 100";
# snap views
#"${main}+Control H" = "snap left";
#"${main}+Control J" = "snap down";
#"${main}+Control K" = "snap up";
#"${main}+Control L" = "snap right";
# snap views
#"${main}+Control H" = "snap left";
#"${main}+Control J" = "snap down";
#"${main}+Control K" = "snap up";
#"${main}+Control L" = "snap right";
# resize views
#"${main}+Shift H" = "resize horizontal -100";
#"${main}+Shift J" = "resize vertical -100";
#"${main}+Shift K" = "resize vertical 100";
#"${main}+Shift L" = "resize horizontal 100";
};
};
# resize views
#"${main}+Shift H" = "resize horizontal -100";
#"${main}+Shift J" = "resize vertical -100";
#"${main}+Shift K" = "resize vertical 100";
#"${main}+Shift L" = "resize horizontal 100";
};
};
};
}

View file

@ -1,5 +1,4 @@
{ config, ... }:
{
{config, ...}: {
wayland.windowManager.sway = {
enable = true;
config = rec {
@ -7,46 +6,44 @@
terminal = "alacritty";
# disable sway bar
bars = [ ];
bars = [];
# set border colors
#colors = {
#focused =
startup = [
{ command = "awww-daemon"; }
{ command = "waybar"; }
{command = "awww-daemon";}
{command = "waybar";}
];
keybindings =
let
main = config.wayland.windowManager.sway.config.modifier;
terminal = config.wayland.windowManager.sway.config.terminal;
browser = "firefox";
in
{
"${main}+c" = "kill"; # close focused window
"${main}+Alt+Delete" = "exit"; # exit sway
keybindings = let
main = config.wayland.windowManager.sway.config.modifier;
terminal = config.wayland.windowManager.sway.config.terminal;
browser = "firefox";
in {
"${main}+c" = "kill"; # close focused window
"${main}+Alt+Delete" = "exit"; # exit sway
# open launcher
"${main}+d" = "exec pkill -x rofi || rofi -show drun -show-icons";
"Alt+Tab" = "exec pkill -x rofi || rofi -modi window -show window -show-icons";
# open launcher
"${main}+d" = "exec pkill -x rofi || rofi -show drun -show-icons";
"Alt+Tab" = "exec pkill -x rofi || rofi -modi window -show window -show-icons";
"${main}+t" = "exec ${terminal}"; # open terminal
"${main}+r" = "exec ${browser}"; # open browser
"${main}+t" = "exec ${terminal}"; # open terminal
"${main}+r" = "exec ${browser}"; # open browser
# move focus
"${main}+h" = "focus left";
"${main}+j" = "focus down";
"${main}+k" = "focus up";
"${main}+l" = "focus right";
# move focus
"${main}+h" = "focus left";
"${main}+j" = "focus down";
"${main}+k" = "focus up";
"${main}+l" = "focus right";
# move focused window
"${main}+Alt+h" = "move left";
"${main}+Alt+j" = "move down";
"${main}+Alt+k" = "move up";
"${main}+Alt+l" = "move right";
};
# move focused window
"${main}+Alt+h" = "move left";
"${main}+Alt+j" = "move down";
"${main}+Alt+k" = "move up";
"${main}+Alt+l" = "move right";
};
};
};
}