fix clipboard fuck yes

This commit is contained in:
2025-09-10 13:40:41 +02:00
parent a823e6a325
commit ff9b507d1b
6 changed files with 31 additions and 7 deletions

View File

@@ -42,6 +42,10 @@
set -gx LS_COLORS "$(vivid generate catppuccin-mocha)" set -gx LS_COLORS "$(vivid generate catppuccin-mocha)"
set -gx COLORTERM truecolor
set -gx COLORFGBG "15;0"
set -gx TERM_BACKGROUND dark
for mode in default insert for mode in default insert
bind --mode $mode \cp open_project bind --mode $mode \cp open_project
end end

View File

@@ -14,11 +14,11 @@
--preview-window='border-rounded' --prompt=' ' --marker=' ' --pointer=' ' --preview-window='border-rounded' --prompt=' ' --marker=' ' --pointer=' '
--separator='' --scrollbar='' --layout='reverse' --separator='' --scrollbar='' --layout='reverse'
--color=bg+:#CCD0DA,bg:#EFF1F5,spinner:#DC8A78,hl:#D20F39 --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8
--color=fg:#4C4F69,header:#D20F39,info:#8839EF,pointer:#DC8A78 --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc
--color=marker:#7287FD,fg+:#4C4F69,prompt:#8839EF,hl+:#D20F39 --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8
--color=selected-bg:#BCC0CC --color=selected-bg:#45475a
--color=border:#9CA0B0,label:#4C4F69 --color=border:#6c7086,label:#cdd6f4
''; '';
}; };
} }

View File

@@ -1,5 +1,24 @@
{ {
programs.nixvim.keymaps = [ programs.nixvim.keymaps = [
# clipboard - OSC52 yank and paste
{
mode = ["n" "v"];
key = "y";
action = ''"+y'';
options.desc = "Yank to system clipboard (OSC52)";
}
{
mode = ["n" "v"];
key = "p";
action = ''"+p'';
options.desc = "Paste from system clipboard (OSC52)";
}
{
mode = ["n" "v"];
key = "P";
action = ''"+P'';
options.desc = "Paste before from system clipboard (OSC52)";
}
# e - explore/edit # e - explore/edit
{ {
mode = "n"; mode = "n";

View File

@@ -1,6 +1,7 @@
{ {
programs.nixvim = { programs.nixvim = {
globals = { globals = {
clipboard = "osc52";
}; };
opts = { opts = {
expandtab = true; expandtab = true;

View File

@@ -2,7 +2,7 @@
programs.opencode = { programs.opencode = {
enable = true; enable = true;
settings = { settings = {
theme = "catppuccin"; theme = "catppuccin-mocha";
instructions = [ instructions = [
"CLAUDE.md" "CLAUDE.md"
"AGENT.md" "AGENT.md"

View File

@@ -2,7 +2,6 @@
with pkgs; [ with pkgs; [
(callPackage ./bin/open-project.nix {}) (callPackage ./bin/open-project.nix {})
age age
rclone
alejandra alejandra
ast-grep ast-grep
delta delta
@@ -14,6 +13,7 @@ with pkgs; [
fd fd
fira-code fira-code
gh gh
ghostty.terminfo
git git
gnumake gnumake
gnupg gnupg