Skip to content

Commit

Permalink
Remove clipboard warning (#102)
Browse files Browse the repository at this point in the history
A warning is displayed when the option is enabled, so displaying a warning on every startup is unnecessary.
  • Loading branch information
caleb-allen authored Jul 18, 2024
1 parent 3326697 commit 7165082
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ using Preferences
import ..VimBindings as VB


function __init__()
if system_clipboard()
println(stdout)
@warn """System clipboard integration is enabled for VimBindings.jl.
The commands `y`, `p` and `P` are enabled for the system clipboard.
Note that registers are not implemented.
The feature is not well tested;
Feel free to share your experience with the feature on this github issue
https://github.com/caleb-allen/VimBindings.jl/issues/7
Remember to include information about your setup.
Disable the feature by running
\t VimBindings.Config.system_clipboard!(false)
"""

end
end

# idea taken from PreferenceTools.jl
function _in_global_env(f)
# imported at runtime, after REPL is instantiated
Expand Down

0 comments on commit 7165082

Please sign in to comment.