From fbdda3bd8dbf7627927057b01608393290a780cc Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Thu, 29 Apr 2021 01:31:46 -0400 Subject: [PATCH] update vscode config --- vimscript/lv-vscode/init.vim | 35 ----------------------------------- 1 file changed, 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 split('h', ) -command! -complete=file -nargs=? Vsplit call split('v', ) -command! -complete=file -nargs=? New call split('h', '__vscode_new__') -command! -complete=file -nargs=? Vnew call split('v', '__vscode_new__') -command! -bang Only if == '!' | call closeOtherEditors() | else | call VSCodeNotify('workbench.action.joinAllGroups') | endif - " Better Navigation nnoremap :call VSCodeNotify('workbench.action.navigateDown') xnoremap :call VSCodeNotify('workbench.action.navigateDown')