[NVIM] Disable OSC52 on shared systems

This commit is contained in:
murgi
2025-08-05 09:51:43 +02:00
parent 689412b474
commit eddb0c81e3
3 changed files with 10 additions and 0 deletions

View File

@@ -1,6 +1,13 @@
set nocompatible
filetype off
if ((!filereadable(stdpath('config') . "/.shared_config")) || (exists('$SUDO_USER') && $SUDO_USER == 'fabian'))
let shared_config = 0
else
let shared_config = 1
echo "Using shared config."
endif
" Plugins
" Note: on most systems, this will make the plugins reside in \
" ~/.local/share/nvim/plugged/
@@ -196,9 +203,11 @@ nmap <Leader>t :call TextWrapToggle()<CR>
"augroup END
"Copying
if (!shared_config)
lua << EOF
vim.g.clipboard = 'osc52'
EOF
endif
set clipboard=unnamedplus,unnamed " Copy/Paste
" Airline