[NVIM] Disable OSC52 on shared systems
This commit is contained in:
0
nvim/.shared_config
Normal file
0
nvim/.shared_config
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user