add nixvim config

This commit is contained in:
Sean Kovacs 2025-11-07 15:44:57 -05:00
commit 83dfbf9260
Signed by: sckova
GPG key ID: 00F325187C68651A
6 changed files with 421 additions and 12 deletions

View file

@ -8,7 +8,6 @@
programs.plasma = {
workspace = {
# lookAndFeel = "Catppuccin-Mocha-Blue";
colorScheme = "CatppuccinMochaBlue";
cursor.theme = "catppuccin-mocha-blue-cursors";
splashScreen.theme = "Catpppuccin-Mocha-Blue";

View file

@ -3,18 +3,16 @@
{
home.packages = with pkgs; [
vesktop
fish
gh
adwsteamgtk
prismlauncher
tmux
fastfetch
btop
neovim
# neovim
killall
wget
ripgrep
kitty
ncdu
fzf
wl-clipboard
@ -48,6 +46,172 @@
};
};
programs.kitty = {
enable = true;
enableGitIntegration = true;
themeFile = "Catppuccin-Mocha";
font = {
name = "Noto Sans Mono";
size = 10;
};
shellIntegration.enableFishIntegration = true;
extraConfig = "\nwheel_scroll_multiplier 5.0";
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
'';
};
programs.nixvim = {
enable = true;
defaultEditor = true;
waylandSupport = true;
viAlias = true;
vimAlias = true;
clipboard = {
register = "unnamedplus";
providers.wl-copy.enable = true;
};
opts = {
tabstop = 2;
softtabstop = 2;
shiftwidth = 2;
expandtab = true;
number = true;
};
colorschemes.catppuccin = {
enable = true;
settings = {
flavour = "mocha";
};
};
keymaps = [
# --- Normal mode mappings ---
{
mode = "n";
key = "<C-c>";
action = "\"+y";
options = {
noremap = true;
silent = true;
};
}
{
mode = "n";
key = "<C-p>";
action = "\"+p";
options = {
noremap = true;
silent = true;
};
}
# --- Visual mode mappings ---
{
mode = "v";
key = "<C-c>";
action = "\"+y";
options = {
noremap = true;
silent = true;
};
}
{
mode = "v";
key = "<C-p>";
action = "\"+p";
options = {
noremap = true;
silent = true;
};
}
];
plugins = {
nvim-autopairs = {
enable = true;
# autoLoad = true;
};
cmp = {
autoEnableSources = true;
enable = true;
# autoLoad = true;
};
copilot-lua = {
enable = true;
# autoLoad = true;
};
conform-nvim = {
enable = true;
# autoLoad = true;
settings = {
formatters_by_ft = {
lua = [ "stylua" ];
python = [
"isort"
"black"
];
nix = [ "nixfmt" ];
javascript = [
"deno fmt"
"prettier"
];
css = [
"deno fmt"
"prettier"
];
json = [
"deno fmt"
"prettier"
];
jsonc = [
"deno fmt"
"prettier"
];
};
# Default formatting options
default_format_opts = {
lsp_format = "fallback";
};
# Format-on-save behavior
format_on_save = {
timeout_ms = 500;
};
# Custom formatter settings
formatters = {
shfmt = {
append_args = [
"-i"
"2"
];
};
};
};
};
fzf-lua = {
enable = true;
# autoLoad = true;
};
kitty-scrollback = {
enable = true;
# autoLoad = true;
};
lsp = {
enable = true;
# autoLoad = true;
};
lualine = {
enable = true;
# autoLoad = true;
};
};
};
programs.plasma = {
enable = true;
overrideConfig = true;
@ -65,6 +229,22 @@
cursor.size = 24;
};
kwin = {
titlebarButtons = {
left = [
"application-menu"
"on-all-desktops"
"keep-below-windows"
"keep-above-windows"
];
right = [
"minimize"
"maximize"
"close"
];
};
};
configFile = {
kwinrc.Desktops.Number = 3;
# kdeglobals.KDE.AutomaticLookAndFeel = true;
@ -109,7 +289,8 @@
launchers = [
"applications:firefox.desktop"
"applications:org.kde.dolphin.desktop"
"applications:org.kde.konsole.desktop"
"applications:vesktop.desktop"
"applications:kitty.desktop"
];
};
}
@ -131,12 +312,14 @@
shown = [
"org.kde.plasma.battery"
"org.kde.plasma.bluetooth"
];
# And explicitly hide networkmanagement and volume
hidden = [
"org.kde.plasma.networkmanagement"
"org.kde.plasma.volume"
];
# And explicitly hide networkmanagement and volume
# hidden = [
# "org.kde.plasma.networkmanagement"
# "org.kde.plasma.volume"
# ];
};
}
{

View file

@ -7,8 +7,21 @@
};
programs.plasma = {
input.touchpads = [
{
name = "Apple MTP multi-touch";
vendorId = "05ac";
productId = "0352";
disableWhileTyping = false;
enable = true;
tapToClick = false;
naturalScroll = true;
accelerationProfile = "default";
}
];
workspace = {
# lookAndFeel = "Catppuccin-Mocha-Peach";
colorScheme = "CatppuccinMochaPeach";
cursor.theme = "catppuccin-mocha-peach-cursors";
splashScreen.theme = "Catpppuccin-Mocha-Peach";