fixed workspace keybind, nvf uses system clipboard

had to do the system clipboard thing so i could share my solution to the
workspace thing lmao, good to get the motivation

also installed vim sleuth which sets the relevant tab options to use the
correct indentation style depending on existing code and swap to
autocomplete when it doesnt make sense to press tab, its great
This commit is contained in:
Gabriella Bere 2025-06-03 22:20:23 +01:00
parent d965253061
commit 661356a198
3 changed files with 16 additions and 13 deletions

View file

@ -30,7 +30,7 @@
services.gnome-keyring.enable = true; # used for nextcloud-client services.gnome-keyring.enable = true; # used for nextcloud-client
home.sessionVariables = { home.sessionVariables = {
DEFAULT_BROWSER = "${lib.getExe pkgs.floorp}"; DEFAULT_BROWSER = "${lib.getExe pkgs.firefox}"; # even though im using floorp this still works, and pkgs.floorp doesnt
# Allow XWayland apps to not be weird after turning off xwayland scaling in hyprland.conf # Allow XWayland apps to not be weird after turning off xwayland scaling in hyprland.conf
GDK_SCALE = 1; GDK_SCALE = 1;
XCURSOR_SIZE = 24; XCURSOR_SIZE = 24;

View file

@ -78,16 +78,16 @@
"$mod, x, killactive" "$mod, x, killactive"
"$mod, tab, togglefloating" "$mod, tab, togglefloating"
# Workspace swipe but with $mod+scroll # workspace swipe but with $mod+scroll
"$mod, mouse_up, workspace, m+1" "$mod, mouse_up, workspace, r+1"
"$mod, left, workspace, m-1" "$mod, left, workspace, m-1"
"$mod, mouse_down, workspace, m-1" "$mod, mouse_down, workspace, m-1"
"$mod, right, workspace, m+1" "$mod, right, workspace, r+1"
# Send window to next workspace # send window to workspace
"$mod SHIFT, mouse_up, movetoworkspace, m+1" "$mod shift, mouse_up, movetoworkspace, r+1"
"$mod SHIFT, left, movetoworkspace, m-1" "$mod shift, left, movetoworkspace, m-1"
"$mod SHIFT, mouse_down, movetoworkspace, m-1" "$mod shift, mouse_down, movetoworkspace, m-1"
"$mod SHIFT, right, movetoworkspace, m+1" "$mod shift, right, movetoworkspace, r+1"
]; ];
# Prevent xwayland apps from looking pixellated, cursor scaling to compensate for this is defined in home.nix # Prevent xwayland apps from looking pixellated, cursor scaling to compensate for this is defined in home.nix

View file

@ -17,11 +17,14 @@
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
lsp = { lsp.enable = true;
enable = true;
};
globals.mapleader = " "; globals.mapleader = " ";
utility.sleuth.enable = true; utility.sleuth.enable = true; # makes vim use consistent indentations style
clipboard = {
enable = true;
providers.wl-copy.enable = true;
registers = "unnamedplus"; # uses system clipboard
};
languages = { languages = {
enableDAP = true; enableDAP = true;
enableExtraDiagnostics = true; enableExtraDiagnostics = true;