this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Point nvim to vimrc

Update hlsearch settings in vimrc and make neovim use VSCode search actions
instead of builtin vim ones.

+33 -11
+3
.config/nvim/init.vim
··· 1 + set runtimepath^=~/.vim runtimepath+=~/.vim/after 2 + let &packpath = &runtimepath 3 + source ~/.vimrc
+25 -10
.vimrc
··· 16 16 17 17 filetype indent on 18 18 19 - syntax on 19 + set mouse=a 20 20 21 21 if &diff 22 22 set diffopt+=iwhite 23 23 endif 24 + 25 + set hlsearch 26 + syntax on 27 + 28 + 29 + " Augroups, must be before `syntax on` 30 + 31 + augroup CustomTodo 32 + autocmd! 33 + autocmd Syntax * syntax match CustomTodo /\v<(TODO|FIXME|NOTE)/ containedin=.*Comment 34 + augroup END 35 + 36 + highlight link CustomTodo Todo 24 37 25 38 26 39 " Editor-specific settings ··· 37 50 38 51 xmap <C-/> <Plug>VSCodeCommentarygv 39 52 nmap <C-/> <Plug>VSCodeCommentaryLine 53 + 54 + " Make neovim use vscode builtin search 55 + " TODO: probably can write a function that sets a variable forward or reverse search 56 + " For now n and N will always go in the same direction 57 + noremap <silent> ? :<C-u>call VSCodeNotify('actions.find')<CR> 58 + noremap <silent> N :<C-u>call VSCodeNotify('editor.action.previousMatchFindAction')<CR> 59 + 60 + noremap <silent> / :<C-u>call VSCodeNotify('actions.find')<CR> 61 + noremap <silent> n :<C-u>call VSCodeNotify('editor.action.nextMatchFindAction')<CR> 40 62 else 41 63 " ordinary vim/neovim settings that don't apply in VSCode 42 - set mouse=a 43 64 44 65 highlight ColorColumn ctermbg=7 45 66 set colorcolumn=80 ··· 53 74 endif 54 75 55 76 colorscheme Monokai 77 + 78 + highlight! link Search IncSearch 56 79 endif 57 80 58 81 " Code from: ··· 88 111 cmap <f28> <nop> 89 112 cmap <f29> <nop> 90 113 91 - 92 - " Augroups 93 - 94 - augroup CustomTodo 95 - autocmd! 96 - autocmd Syntax * syntax match CustomTodo /\v<(TODO|FIXME|NOTE)/ containedin=.*Comment 97 - augroup END 98 - highlight link CustomTodo Todo
+5 -1
Library/Application Support/Code/User/keybindings.json
··· 265 265 { 266 266 "key": "cmd+c", 267 267 "command": "vscode-neovim.send", 268 - "when": "editorTextFocus && neovim.init", 268 + "when": "editorTextFocus && neovim.mode != 'insert'", 269 269 "args": "\"+ygv" 270 270 }, 271 271 // ========================================================================= ··· 282 282 { 283 283 "command": "workbench.action.editor.changeLanguageMode", 284 284 "key": "cmd+l" 285 + }, 286 + { 287 + "command": "editor.action.indentUsingSpaces", 288 + "key": "cmd+shift+l" 285 289 }, 286 290 { 287 291 "command": "-workbench.action.editor.changeLanguageMode",