Skip to content

Commit 92fe5d8

Browse files
ryul99beeender
authored andcommitted
fix(config): ensure set_g_clipboard defaults to true only when not explicitly set
1 parent ea04ee5 commit 92fe5d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/richclip/config.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ CONFIG.with_defaults = function(options)
55
--- it automatically.
66
CONFIG.richclip_path = options.richclip_path or nil
77
--- Set g:clipboard to let richclip take over the clipboard.
8-
CONFIG.set_g_clipboard = options.set_g_clipboard or true
8+
if options.set_g_clipboard == nil then
9+
CONFIG.set_g_clipboard = true
10+
else
11+
CONFIG.set_g_clipboard = options.set_g_clipboard
12+
end
913
--- To print debug logs
1014
CONFIG.enable_debug = options.debug or false
1115
end

0 commit comments

Comments
 (0)