diff --git a/config/nvim/lua/neo/option.lua b/config/nvim/lua/neo/option.lua index 3b424e0..3e3b03b 100644 --- a/config/nvim/lua/neo/option.lua +++ b/config/nvim/lua/neo/option.lua @@ -108,16 +108,18 @@ vim.cmd([[ endfunc command! -nargs=* -complete=file TrimAll :silent! call s:TrimAll() - func! provider#clipboard#Executable() abort - if exists('g:clipboard') - if type({}) isnot# type(g:clipboard) - \ || type({}) isnot# type(get(g:clipboard, 'copy', v:null)) - \ || type({}) isnot# type(get(g:clipboard, 'paste', v:null)) - let s:err = 'clipboard: invalid g:clipboard' - return '' - endif - let s:copy = get(g:clipboard, 'copy', { '+': v:null, '*': v:null }) - let s:paste = get(g:clipboard, 'paste', { '+': v:null, '*': v:null }) - let s:cache_enabled = get(g:clipboard, 'cache_enabled', 0) - return get(g:clipboard, 'name', 'g:clipboard') ]]) + +-- func! provider#clipboard#Executable() abort +-- if exists('g:clipboard') +-- if type({}) isnot# type(g:clipboard) +-- \ || type({}) isnot# type(get(g:clipboard, 'copy', v:null)) +-- \ || type({}) isnot# type(get(g:clipboard, 'paste', v:null)) +-- let s:err = 'clipboard: invalid g:clipboard' +-- return '' +-- endif +-- let s:copy = get(g:clipboard, 'copy', { '+': v:null, '*': v:null }) +-- let s:paste = get(g:clipboard, 'paste', { '+': v:null, '*': v:null }) +-- let s:cache_enabled = get(g:clipboard, 'cache_enabled', 0) +-- return get(g:clipboard, 'name', 'g:clipboard') +-- endfunc