vscodium updates

This commit is contained in:
Chris 2020-09-01 20:34:19 -04:00
parent f5aef47d80
commit 9379982b7e
4 changed files with 38 additions and 36 deletions

1
ftplugin/markdown.vim Normal file
View file

@ -0,0 +1 @@
set wrap

View file

@ -11,29 +11,29 @@ source $HOME/.config/nvim/general/settings.vim
source $HOME/.config/nvim/general/functions.vim source $HOME/.config/nvim/general/functions.vim
source $HOME/.config/nvim/keys/mappings.vim source $HOME/.config/nvim/keys/mappings.vim
source $HOME/.config/nvim/plug-config/vim-commentary.vim source $HOME/.config/nvim/plug-config/vim-commentary.vim
source $HOME/.config/nvim/plug-config/quickscope.vim
if exists('g:vscode') if exists('g:vscode')
" VS Code extension " VS Code extension
source $HOME/.config/nvim/vscode/windows.vim source $HOME/.config/nvim/vscode/settings.vim
source $HOME/.config/nvim/plug-config/easymotion.vim source $HOME/.config/nvim/plug-config/easymotion.vim
else else
" Themes " Themes
source $HOME/.config/nvim/themes/syntax.vim source $HOME/.config/nvim/themes/syntax.vim
source $HOME/.config/nvim/themes/onedark.vim source $HOME/.config/nvim/themes/onedark.vim
" source $HOME/.config/nvim/themes/material.vim
source $HOME/.config/nvim/themes/airline.vim source $HOME/.config/nvim/themes/airline.vim
" source $HOME/.config/nvim/themes/material.vim
" Plugin Configuration " Plugin Configuration
source $HOME/.config/nvim/keys/which-key.vim source $HOME/.config/nvim/keys/which-key.vim
source $HOME/.config/nvim/plug-config/rainbow.vim
source $HOME/.config/nvim/plug-config/rnvimr.vim source $HOME/.config/nvim/plug-config/rnvimr.vim
source $HOME/.config/nvim/plug-config/better-whitespace.vim source $HOME/.config/nvim/plug-config/better-whitespace.vim
source $HOME/.config/nvim/plug-config/fzf.vim source $HOME/.config/nvim/plug-config/fzf.vim
source $HOME/.config/nvim/plug-config/rainbow.vim
source $HOME/.config/nvim/plug-config/codi.vim
source $HOME/.config/nvim/plug-config/quickscope.vim
source $HOME/.config/nvim/plug-config/vim-wiki.vim
source $HOME/.config/nvim/plug-config/sneak.vim source $HOME/.config/nvim/plug-config/sneak.vim
source $HOME/.config/nvim/plug-config/codi.vim
source $HOME/.config/nvim/plug-config/vim-wiki.vim
source $HOME/.config/nvim/plug-config/coc.vim source $HOME/.config/nvim/plug-config/coc.vim
source $HOME/.config/nvim/plug-config/goyo.vim source $HOME/.config/nvim/plug-config/goyo.vim
source $HOME/.config/nvim/plug-config/vim-rooter.vim source $HOME/.config/nvim/plug-config/vim-rooter.vim
@ -52,9 +52,9 @@ else
source $HOME/.config/nvim/plug-config/asynctask.vim source $HOME/.config/nvim/plug-config/asynctask.vim
source $HOME/.config/nvim/plug-config/window-swap.vim source $HOME/.config/nvim/plug-config/window-swap.vim
source $HOME/.config/nvim/plug-config/markdown-preview.vim source $HOME/.config/nvim/plug-config/markdown-preview.vim
luafile $HOME/.config/nvim/lua/plug-colorizer.lua
" source $HOME/.config/nvim/plug-config/vimspector.vim " Uncomment if you want to use Vimspector " source $HOME/.config/nvim/plug-config/vimspector.vim " Uncomment if you want to use Vimspector
" source $HOME/.config/nvim/plug-config/ale.vim " source $HOME/.config/nvim/plug-config/ale.vim
luafile $HOME/.config/nvim/lua/plug-colorizer.lua
endif endif
" Add paths to node and python here " Add paths to node and python here

View file

@ -10,32 +10,34 @@ call plug#begin('~/.config/nvim/autoload/plugged')
" Better Comments " Better Comments
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
" Change dates fast
Plug 'tpope/vim-speeddating'
" Convert binary, hex, etc..
Plug 'glts/vim-radical'
" Repeat stuff
Plug 'tpope/vim-repeat'
" Text Navigation
Plug 'unblevable/quick-scope'
" Useful for React Commenting
Plug 'suy/vim-context-commentstring'
" highlight all matches under cursor
Plug 'RRethy/vim-illuminate'
if exists('g:vscode') if exists('g:vscode')
" Easy motion for VSCode " Easy motion for VSCode
Plug 'asvetliakov/vim-easymotion' Plug 'asvetliakov/vim-easymotion'
else else
" Change dates fast " Sneak
Plug 'tpope/vim-speeddating' Plug 'justinmk/vim-sneak'
" Convert binary, hex, etc..
Plug 'glts/vim-radical'
" Files
Plug 'tpope/vim-eunuch'
" Repeat stuff
Plug 'tpope/vim-repeat'
" Surround " Surround
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
" Files
Plug 'tpope/vim-eunuch'
" Have the file system follow you around " Have the file system follow you around
Plug 'airblade/vim-rooter' Plug 'airblade/vim-rooter'
" auto set indent settings " auto set indent settings
Plug 'tpope/vim-sleuth' Plug 'tpope/vim-sleuth'
" Text Navigation
Plug 'justinmk/vim-sneak'
Plug 'unblevable/quick-scope'
" Add some color
Plug 'norcalli/nvim-colorizer.lua'
Plug 'luochen1990/rainbow'
" Better Syntax Support " Better Syntax Support
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
" Cool Icons " Cool Icons
@ -82,8 +84,6 @@ call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'mg979/vim-xtabline' Plug 'mg979/vim-xtabline'
" undo time travel " undo time travel
Plug 'mbbill/undotree' Plug 'mbbill/undotree'
" highlight all matches under cursor
Plug 'RRethy/vim-illuminate'
" Find and replace " Find and replace
Plug 'ChristianChiarulli/far.vim' Plug 'ChristianChiarulli/far.vim'
" Plug 'brooth/far.vim' " Plug 'brooth/far.vim'
@ -103,6 +103,10 @@ call plug#begin('~/.config/nvim/autoload/plugged')
" Easily Create Gists " Easily Create Gists
Plug 'mattn/vim-gist' Plug 'mattn/vim-gist'
Plug 'mattn/webapi-vim' Plug 'mattn/webapi-vim'
" Colorizer
Plug 'norcalli/nvim-colorizer.lua'
" Rainbow brackets
Plug 'luochen1990/rainbow'
" Async Linting Engine " Async Linting Engine
" TODO make sure to add ale config before plugin " TODO make sure to add ale config before plugin
" Plug 'dense-analysis/ale' " Plug 'dense-analysis/ale'
@ -112,8 +116,6 @@ call plug#begin('~/.config/nvim/autoload/plugged')
" TODO add this back in change from C-n " TODO add this back in change from C-n
" Plug 'mg979/vim-visual-multi', {'branch': 'master'} " Plug 'mg979/vim-visual-multi', {'branch': 'master'}
Plug 'moll/vim-bbye' Plug 'moll/vim-bbye'
" Useful for React Commenting
Plug 'suy/vim-context-commentstring'
" Plugin Graveyard " Plugin Graveyard
" jsx syntax support " jsx syntax support

View file

@ -42,14 +42,6 @@ xnoremap <silent> <C-w>v :call <SID>split('v')<CR>
nnoremap <silent> <C-w>n :call <SID>splitNew('h', '__vscode_new__')<CR> nnoremap <silent> <C-w>n :call <SID>splitNew('h', '__vscode_new__')<CR>
xnoremap <silent> <C-w>n :call <SID>splitNew('h', '__vscode_new__')<CR> xnoremap <silent> <C-w>n :call <SID>splitNew('h', '__vscode_new__')<CR>
nnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
xnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
nnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
xnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
nnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
xnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
nnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
xnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
nnoremap <silent> <C-w>= :<C-u>call VSCodeNotify('workbench.action.evenEditorWidths')<CR> nnoremap <silent> <C-w>= :<C-u>call VSCodeNotify('workbench.action.evenEditorWidths')<CR>
xnoremap <silent> <C-w>= :<C-u>call VSCodeNotify('workbench.action.evenEditorWidths')<CR> xnoremap <silent> <C-w>= :<C-u>call VSCodeNotify('workbench.action.evenEditorWidths')<CR>
@ -63,14 +55,21 @@ xnoremap <silent> <C-w>< :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<C
nnoremap <silent> <C-w>- :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR> nnoremap <silent> <C-w>- :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR>
xnoremap <silent> <C-w>- :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR> xnoremap <silent> <C-w>- :<C-u>call <SID>manageEditorSize(v:count, 'decrease')<CR>
" Better Navigation
nnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
xnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
nnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
xnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
nnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
xnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
nnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
xnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
" Bind C-/ to vscode commentary since calling from vscode produces double comments due to multiple cursors " Bind C-/ to vscode commentary since calling from vscode produces double comments due to multiple cursors
xnoremap <silent> <C-/> :call Comment()<CR> xnoremap <silent> <C-/> :call Comment()<CR>
nnoremap <silent> <C-/> :call Comment()<CR> nnoremap <silent> <C-/> :call Comment()<CR>
nnoremap <silent> <C-w>_ :<C-u>call VSCodeNotify('workbench.action.toggleEditorWidths')<CR> nnoremap <silent> <C-w>_ :<C-u>call VSCodeNotify('workbench.action.toggleEditorWidths')<CR>
" nnoremap <silent> <Space> :call VSCodeCall('whichkey.show')
" xnoremap <silent> <Space> :call VSCodeCall('whichkey.show')
nnoremap <silent> <Space> :call VSCodeNotify('whichkey.show')<CR> nnoremap <silent> <Space> :call VSCodeNotify('whichkey.show')<CR>
xnoremap <silent> <Space> :call VSCodeNotify('whichkey.show')<CR> xnoremap <silent> <Space> :call VSCodeNotify('whichkey.show')<CR>