File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 8
8
branches :
9
9
- master
10
10
11
+ env :
12
+ CI : true
13
+
11
14
jobs :
12
15
lint :
13
16
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -100,6 +100,31 @@ vim.cmd.language('en_US.utf-8')
100
100
vim .env .TZ = ' Europe/London'
101
101
vim .g .mapleader = ' ,'
102
102
103
+ -- NOTE: This is a workaround to get the clipboard working in the CI environment
104
+ -- where the clipboard provider does not exist.
105
+ if vim .env .CI == ' true' then
106
+ vim .g .org_custom_clipboard = {}
107
+ vim .g .clipboard = {
108
+ name = ' org_custom_clipboard' ,
109
+ copy = {
110
+ [' +' ] = function (lines , regtype )
111
+ vim .g .org_custom_clipboard = { lines , regtype }
112
+ end ,
113
+ [' *' ] = function (lines , regtype )
114
+ vim .g .org_custom_clipboard = { lines , regtype }
115
+ end ,
116
+ },
117
+ paste = {
118
+ [' +' ] = function ()
119
+ return vim .g .org_custom_clipboard or {}
120
+ end ,
121
+ [' *' ] = function ()
122
+ return vim .g .org_custom_clipboard or {}
123
+ end ,
124
+ },
125
+ }
126
+ end
127
+
103
128
require (' orgmode' ).setup_ts_grammar ()
104
129
require (' nvim-treesitter.configs' ).setup ({
105
130
ensure_installed = { ' org' },
You can’t perform that action at this time.
0 commit comments