diff options
author | christianchiarulli <[email protected]> | 2021-04-29 01:31:46 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-04-29 01:31:46 -0400 |
commit | fbdda3bd8dbf7627927057b01608393290a780cc (patch) | |
tree | bb826f629b58c15c971f8d94b9a29c6aba6f82f4 /vimscript | |
parent | 4b548da2463f677a7d0e402c5c2243d77632d2e0 (diff) |
update vscode config
Diffstat (limited to 'vimscript')
-rw-r--r-- | vimscript/lv-vscode/init.vim | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vimscript/lv-vscode/init.vim b/vimscript/lv-vscode/init.vim index e3e7f6eb..a1b9ed1f 100644 --- a/vimscript/lv-vscode/init.vim +++ b/vimscript/lv-vscode/init.vim @@ -1,35 +1,7 @@ -" TODO there is a more contemporary version of this file -" TODO Also some of it is redundant " packadd quickscope luafile ~/.config/nvim/lua/settings.lua -" let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] - -" highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline -" highlight QuickScopeSecondary guifg='#eF5F70' gui=underline ctermfg=81 cterm=underline -" let g:qs_max_chars=150 - -"VSCode -function! s:split(...) abort - let direction = a:1 - let file = a:2 - call VSCodeCall(direction == 'h' ? 'workbench.action.splitEditorDown' : 'workbench.action.splitEditorRight') - if file != '' - call VSCodeExtensionNotify('open-file', expand(file), 'all') - endif -endfunction - -function! s:splitNew(...) - let file = a:2 - call s:split(a:1, file == '' ? '__vscode_new__' : file) -endfunction - -function! s:closeOtherEditors() - call VSCodeNotify('workbench.action.closeEditorsInOtherGroups') - call VSCodeNotify('workbench.action.closeOtherEditors') -endfunction - function! s:manageEditorSize(...) let count = a:1 let to = a:2 @@ -79,13 +51,6 @@ function! s:openWhichKeyInVisualMode() endif endfunction - -command! -complete=file -nargs=? Split call <SID>split('h', <q-args>) -command! -complete=file -nargs=? Vsplit call <SID>split('v', <q-args>) -command! -complete=file -nargs=? New call <SID>split('h', '__vscode_new__') -command! -complete=file -nargs=? Vnew call <SID>split('v', '__vscode_new__') -command! -bang Only if <q-bang> == '!' | call <SID>closeOtherEditors() | else | call VSCodeNotify('workbench.action.joinAllGroups') | endif - " Better Navigation nnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR> xnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR> |