Configure nvim to use system clipboard by default
- Add clipboard = "unnamedplus" to make all yank operations use system clipboard - Remove redundant <leader>y keymapping since y now copies to clipboard by default - Preserve full access to vim's register system (named registers still work independently) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ebfb6f3bf2
commit
8cb239963a
1 changed files with 1 additions and 6 deletions
|
|
@ -21,6 +21,7 @@
|
|||
breakindent = true; # Preserve indentation when wrapping
|
||||
termguicolors = true;
|
||||
autoread = true; # Automatically reload files when changed externally
|
||||
clipboard = "unnamedplus"; # Use system clipboard by default
|
||||
};
|
||||
|
||||
# Enable filetype detection
|
||||
|
|
@ -142,12 +143,6 @@
|
|||
}
|
||||
|
||||
# System clipboard keymaps
|
||||
{
|
||||
mode = ["n" "v"];
|
||||
key = "<leader>y";
|
||||
action = "\"+y";
|
||||
options = { desc = "Copy to system clipboard"; };
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>p";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue