5d3009bf0a495723a0261c93e1908f0117ddeed6
dblume Remove explicit settings th...

dblume authored 6 months ago

1) " Version 2024-03-07.1 - First misc fixes
dblume Add Neovim configs

dblume authored 6 months ago

2) set bs=2            " allow backspacing over everything in insert mode
3) set smartindent     " Do smart auto indenting when starting  new line
4) set foldlevel=99
5) set nowrap          " no wrapping text lines on the screen (exceptions below)
6) set sidescroll=5
dblume Use build-in style for nvim...

dblume authored 5 months ago

7) set listchars+=tab:>-,precedes:<,extends:>,nbsp:·,eol:\\u21b5 " for :set list
dblume Add Neovim configs

dblume authored 6 months ago

8) set iskeyword+=-    " Add - to list of non-word-breaking chars.
9) set scrolloff=0     " EC2 defaults to 5. Set explicitly to be consistent
10) set notermguicolors " Only needed for neovim while I port my color schemes
dblume Remove explicit settings th...

dblume authored 6 months ago

11) set undofile        " undo even after closing and reopening a file
dblume Small responsiveness improv...

dblume authored 6 months ago

12) set noshowcmd       " Show size of selected area in visual mode on last line
13) set noruler         " Show coordinates on status line
dblume nvim set hidden

dblume authored 6 months ago

14) set hidden          " Don't abandon Scratch buffer when hidden.
dblume Don't set cursorline if we'...

dblume authored 5 months ago

15) "set cursorline     " For CursorLineNR formatting similar to pre 8.0.
dblume Set cursorlineopt to number...

dblume authored 5 months ago

16) set culopt=number   " Otherwise diff views have an underline. neovim issue 9800
dblume Simplify vim titlestring: p...

dblume authored 4 months ago

17) " Set the title of the terminal window. Consider changing titlestring, %t, %M
18) set title titlestring=%f%m\ -\ nvim
dblume Don't use unnamed register...

dblume authored 4 months ago

19) 
20) " WSL clipboard-tool fom 'help clipboard'
21) "let g:clipboard = {
22) "            \   'name': 'WslClipboard',
23) "            \   'copy': {
24) "            \      '+': '/mnt/c/Windows/system32/clip.exe',
25) "            \      '*': '/mnt/c/Windows/system32/clip.exe',
26) "            \    },
27) "            \   'paste': {
28) "            \      '+': 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
29) "            \      '*': 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
30) "            \   },
31) "            \   'cache_enabled': 0,
32) "            \ }
33) 
34) " Yank and put into the system Clipboard (register + or *)
35) " Otherwise make explicit commands "+yy "+y "+Y (or * instead of + as needed)
36) " N.B. Don't use unnamed register for clipboard (set clipboard=unnamed)
37) "      Delete operations would overwrite clipboard before pasting.
dblume Disable maps in cscope_maps

dblume authored 2 days ago

38) " Also N.B. cscope_maps might assign <leader>c to its prefix.
dblume Don't use unnamed register...

dblume authored 4 months ago

39) nnoremap <leader>c "+
40) vnoremap <leader>c "+
dblume Add Neovim configs

dblume authored 6 months ago

41) 
42) " Make j and k move to the next row, not file line
43) nnoremap j gj
44) nnoremap k gk
45) 
46) " From Steve Losh: http://learnvimscriptthehardway.stevelosh.com/chapters/10.html
47) " Map jk to ESC in insert mode (except when navigating popup menu)
48) inoremap <expr> jk pumvisible() ? '' : '<esc>'
49) inoremap <expr> j pumvisible() ? '<Down>' : 'j'
50) inoremap <expr> k pumvisible() ? '<Up>' : 'k'
dblume Map Tab and CR to pull-up-m...

dblume authored 5 months ago

51) inoremap <expr> <Tab> pumvisible() ? '<Down>' : '<Tab>'
52) inoremap <expr> <S-Tab> pumvisible() ? '<Up>' : '<S-Tab>'
53) inoremap <expr> <cr> pumvisible() ? '<C-y>' : '<cr>'
dblume Add Neovim configs

dblume authored 6 months ago

54) 
55) " https://stevelosh.com/blog/2010/09/coming-home-to-vim/#s3-why-i-came-back-to-vim
56) nnoremap <leader>v <C-w>v<C-w>l
57) nnoremap <C-h> <C-w>h
58) nnoremap <C-j> <C-w>j
59) nnoremap <C-k> <C-w>k
60) nnoremap <C-l> <C-w>l
61) 
62) " clear search highlights
63) nnoremap <cr> :noh<cr><cr>
64) 
dblume Have terminal emulator send...

dblume authored 4 months ago

65) " tmux 3.2+ doesn't send C-i, so have Alacritty iTerm2 map C-i to <leader>i
66) " iTerm2: Settings > Keys > Key Bindings > + > Shortcut:^i Action:Send Text "\i"
dblume Alacritty+tmux: Map <C-i> t...

dblume authored 4 months ago

67) nnoremap <leader>i <C-i>
dblume Have terminal emulator send...

dblume authored 4 months ago

68) " Use (Shift-)Tab to navigate buffers, retain C-i/C-o for jumps.
dblume When Tab distinguished from...

dblume authored 4 months ago

69) " Test with this:
70) " nvim -Nu NONE +'nno <C-i> :echom "C-i pressed"<cr>' +'nno <tab> :echom "Tab pressed"<cr>'
dblume Have terminal emulator send...

dblume authored 4 months ago

71) "if stridx(expand($TERM), 'xterm') == 0
dblume When Tab distinguished from...

dblume authored 4 months ago

72)   nnoremap <C-i> <C-i>
dblume Alacritty+tmux: Map <C-i> t...

dblume authored 4 months ago

73)   nmap <Tab> :bn<cr>
dblume Have terminal emulator send...

dblume authored 4 months ago

74) "endif
dblume Restore Ctrl-i (Tab) to mea...

dblume authored 4 months ago

75) nnoremap <S-Tab> :bp<cr>
dblume Add Neovim configs

dblume authored 6 months ago

76) 
77) set t_Co=256
dblume First tweaks for neovim, tw...

dblume authored 6 months ago

78) set colorcolumn=80
dblume Add Neovim configs

dblume authored 6 months ago

79) if has('gui_running') " Didn't work: if &term != 'builtin_gui'
80)   " Light backgrounds for GUI experiences
81)   set background=light
82)   " colorscheme peaksea
83)   colorscheme tolerable
dblume First tweaks for neovim, tw...

dblume authored 6 months ago

84)   highlight ColorColumn ctermbg=255 guibg=#F6F6F6
dblume nvim ColorColumn was inverted

dblume authored 6 months ago

85)   highlight statusline   ctermfg=17 ctermbg=Gray  " override scheme
86)   highlight statuslineNC ctermfg=20 ctermbg=LightGray  " override scheme
dblume Add Neovim configs

dblume authored 6 months ago

87)   if has('win32')
88)     set guifont=DejaVu_Sans_Mono_for_Powerline:h10:cANSI:qDRAFT
89)   endif
90)   set lines=50 columns=100
91) else
92)   " Dark backgrounds for tty experiences
93)   set background=dark
94)   colorscheme nvim_desert
95) endif
96) 
dblume Vim insert mode's blue shou...

dblume authored 5 months ago

97) au InsertEnter * hi statusline guibg=Cyan ctermfg=25 guifg=Black ctermbg=248
dblume Make the normal statusbar m...

dblume authored 5 months ago

98) au InsertLeave * hi statusline term=bold,reverse cterm=bold,reverse ctermfg=23 ctermbg=250 guifg=black guibg=#c2bfa5
dblume Add Neovim configs

dblume authored 6 months ago

99) 
dblume Restore cursor line number...

dblume authored 5 months ago

100) " See https://neovim.io/doc/user/vim_diff.html#_default-mouse
101) set mouse=  " neovim defaults to nvi
dblume Add Neovim configs

dblume authored 6 months ago

102) 
dblume Make c-] show taglist like...

dblume authored 5 months ago

103) " Make c-] show a list of tags, or jump straight if only single tag
dblume Disable maps in cscope_maps

dblume authored 2 days ago

104) " Note cscope_maps plugin might map c-].
dblume Make c-] show taglist like...

dblume authored 5 months ago

105) nnoremap <c-]> g<c-]>
106) vnoremap <c-]> g<c-]>
107) nnoremap g<c-]> <c-]>
108) vnoremap g<c-]> <c-]>
dblume First tweaks for neovim, tw...

dblume authored 6 months ago

109) " Consider neovim default "./tags;,tags"
dblume Add Neovim configs

dblume authored 6 months ago

110) set tags=tags;/
111) 
dblume First tweaks for neovim, tw...

dblume authored 6 months ago

112) set history=500
dblume Add Neovim configs

dblume authored 6 months ago

113) 
dblume Retrieve git branch only on...

dblume authored 6 months ago

114) function! GitBranch()
dblume Make vim StatuslineGit() re...

dblume authored 6 months ago

115)   let l:branchname = system("git -C " . expand('%:p:h') . " rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
dblume Add the powerline git char...

dblume authored 5 months ago

116)   return strlen(l:branchname) > 0 ? '  │  '.l:branchname : ''
dblume Add Neovim configs

dblume authored 6 months ago

117) endfunction
118) 
dblume Only show encoding and form...

dblume authored 6 months ago

119) function! EncodingAndFormat()
120)   if (len(&fileencoding) && &fileencoding != 'utf-8') || &fileformat != 'unix'
121)     return &fileencoding?&fileencoding:&encoding .'['. &fileformat . '] │ '
122)   endif
123)   return ''
124) endfunction
125) 
dblume Make "set ruler!" change st...

dblume authored 5 months ago

126) function! OnRuler()
127)   if &ruler
128)     return '│ '.line('.').':'.col('.').' '
129)   endif
130)   return ''
131) endfunction
132) 
dblume Add Neovim configs

dblume authored 6 months ago

133) function! Current_mode()
134)   let l:currentmode={
135)     \ 'n'  : 'NORMAL',
136)     \ 'v'  : 'VISUAL',
137)     \ 'V'  : 'V·LINE',
138)     \ '' : 'V·BLOCK',
139)     \ 's'  : 'SELECT',
140)     \ 'S'  : 'S·LINE',
141)     \ 'i'  : 'INSERT',
142)     \ 'r'  : 'I·REPLACE',
143)     \ 'R'  : 'REPLACE',
144)     \ 'Rv' : 'V·REPLACE',
145)     \ 'c'  : 'COMMAND',
146)     \}
147)     return get(l:currentmode, mode(), mode())
148) endfunction
149) 
150) function! Trim_brackets(fn)
151)   if v:version > 800
152)     return trim(a:fn, "[]")
153)   else
154)     return a:fn
155)   endif
156) endfunction
157) 
158) set statusline=\ %{Current_mode()}
159) set statusline+=%{&paste?'\ \ ·\ PASTE':''}
dblume Retrieve git branch only on...

dblume authored 6 months ago

160) set statusline+=%{b:git_branch}
dblume Add Neovim configs

dblume authored 6 months ago

161) set statusline+=\ │\ %f
162) set statusline+=%m
163) set statusline+=\ %r
164) set statusline+=\ %=
165) set statusline+=%h
166) set statusline+=\ %{Trim_brackets(&filetype)}
167) set statusline+=\ %#StatusLineNC#
dblume Only show encoding and form...

dblume authored 6 months ago

168) set statusline+=\ %{b:enc_fmt}
169) set statusline+=%p%%\ of
dblume Drop column and line number...

dblume authored 6 months ago

170) set statusline+=\ %L\ 
dblume Make "set ruler!" change st...

dblume authored 5 months ago

171) set statusline+=%{OnRuler()}
dblume Add Neovim configs

dblume authored 6 months ago

172) 
173) " Fast saving
174) nmap <leader>w :w!<cr>
175) " I use relative number for cursor movement.
176) nmap <leader>r :set relativenumber!<cr>
177) nmap <leader>n :set number!<cr>
178) 
179) " Useful mappings for managing tabs
180) " Tab Previous: gT or C-PageUp
181) " Tab Next: gt or C-PageDown
182) nmap <leader>tn :tabnew
183) nmap <leader>to :tabonly<cr>
184) nmap <leader>tc :tabclose<cr>
185) nmap <leader>tm :tabmove
186) nmap <leader>1 1gt
187) nmap <leader>2 2gt
188) nmap <leader>3 3gt
189) nmap <leader>4 4gt
190) nmap <leader>5 5gt
191) nmap <leader>6 6gt
192) nmap <leader>7 7gt
193) nmap <leader>8 8gt
194) nmap <leader>9 9gt
195) 
196) " Open current buffer in new tab. Close with C-w,c
197) " https://vim.fandom.com/wiki/Maximize_window_and_return_to_previous_split_structure
198) function! OpenCurrentAsNewTab()
199)     let l:currentView = winsaveview()
200)     tabedit %
201)     call winrestview(l:currentView)
202) endfunction
203) nmap <leader>o :call OpenCurrentAsNewTab()<CR>
204) 
205) " pastetoggle
206) nmap <leader>p :set invpaste paste?<cr>
207) 
208) " Control+p to paste onto next line
209) nmap <C-p> :pu<cr>
210) 
211) " Make netrw's Explore behave a little like NERDTreeToggle
212) " http://vimcasts.org/blog/2013/01/oil-and-vinegar-split-windows-and-project-drawer/
213) function! ToggleNetrw()
214)   if bufwinnr("NetrwTreeListing") > 0
215)     for i in range(1, bufnr("$"))
216)       if (getbufvar(i, "&filetype") == "netrw")
217)         silent exe "bwipeout " . i
218)         return
219)       endif
220)     endfor
221)   endif
222)   silent Vexplore %:p:h
223) endfunction
224) nmap <leader>e :call ToggleNetrw()<cr>
225) 
226) " install taglist
227) let Tlist_GainFocus_On_ToggleOpen = 1  " Jump to taglist window on open
228) let Tlist_Exit_OnlyWindow = 1          " if you are the last, kill yourself
229) let Tlist_Close_On_Select = 1          " Close taglist window on select
dblume Disable taglist's auto resi...

dblume authored 5 months ago

230) let Tlist_Inc_Winwidth = 0             " Only needed for neovim in tmux
dblume Add Neovim configs

dblume authored 6 months ago

231) nmap <leader>l :TlistToggle<cr>
232) 
233) " install vim-bbye
234) nmap <leader>bd :Bdelete<cr>
235) 
236) " Visual mode mappings
237) """
238) 
239) " map sort function to a key
240) vnoremap <leader>s :sort<cr>
241) 
242) "easier moving of code blocks
243) vnoremap < <gv
244) vnoremap > >gv
245) 
246) " If too many file system events are getting triggered.
247) set nobackup       " ~ files
248) set nowritebackup  " Don't write buff to temp, delete orig, rename temp to orig
249) set noswapfile     " .swp files
250) 
251) " Switch between source and header files
252) function! SwitchSourceHeader()
253)   let s:ext  = expand("%:e")
254)   let s:base = expand("%:t:r")
255)   let s:cmd  = "find " . s:base
256)   if (s:ext == "cpp" || s:ext == "c")
257)     if findfile(s:base . ".h"  ) != "" | exe s:cmd . ".h"   | return | en
258)     if findfile(s:base . ".hpp") != "" | exe s:cmd . ".hpp" | return | en
259)   else
260)     if findfile(s:base . ".cpp") != "" | exe s:cmd . ".cpp" | return | en
261)     if findfile(s:base . ".c"  ) != "" | exe s:cmd . ".c"   | return | en
262)   endif
263) endfunc
264) 
265) " Demonstrates a way to look in a mirror directory
266) " function! OpenOther()
267) "    if expand("%:e") == "cpp"
268) "      exe "split" fnameescape(expand("%:p:r:s?src?include?").".h")
269) "    elseif expand("%:e") == "h"
270) "      exe "split" fnameescape(expand("%:p:r:s?include?src?").".cpp")
271) "    endif
272) " endfunc
273) 
274) " Delete trailing white space on save, useful for Python and CoffeeScript ;)
275) function! DeleteTrailingWS()
276)   exe "normal mz"
277)   %s/\s\+$//ge
278)   exe "normal `z"
279) endfunc
280) 
281) function! OpenInOtherWindow()
282)   if winnr('$') == 1
283)     exe "wincmd F"
284)   else
285)     let curNum = winnr()
286)     let oldBuf = bufnr( "%" )
287)     if curNum == 1
288)       let othNum = 2
289)     else
290)       let othNum = 1
291)     endif
292)     exe "normal! gF"
293)     let newBuf = bufnr( "%" )
294)     let newLine = line(".")
295)     exe 'hide buf' oldBuf
296)     exe othNum . "wincmd w"
297)     exe 'hide buf' newBuf
298)     exe "normal! " . newLine . "G"
299)   endif
300) endfunc
301) 
302) nmap <silent> <leader>F :call OpenInOtherWindow()<cr>
303) nmap <silent> <leader>f :call OpenInOtherWindow()<cr>
304) 
305) if has("autocmd")
306)   autocmd BufWrite *.py :call DeleteTrailingWS()  " Delete trailing whitespace
307)   " Don't let smartindent unindent the # character in Python files
308)   autocmd FileType python  inoremap # X<c-h>#
309)   autocmd FileType python,c,cpp,php,brs,sh  set expandtab  " Use spaces instead of tabs
310)   autocmd Filetype make    setl noexpandtab       " ...not for files that use tabs.
311) 
312)   " Use the vim command %retab before applying the following
313)   " two with files that have 8-space tabs.
314)   autocmd FileType c,cpp,python,php  set tabstop=4
315)   autocmd FileType c,cpp,php  set shiftwidth=4
316) 
317)   autocmd FileType python  set foldmethod=indent  " 'za' to fold
318) 
319)   autocmd FileType c,cpp nmap <buffer> <leader>s :call SwitchSourceHeader()<cr>
320)   autocmd FileType c,cpp set foldmethod=syntax
321) 
dblume Improve focus-based switchi...

dblume authored 6 months ago

322) " https://jeffkreeftmeijer.com/vim-number/
323) augroup numbertoggle
324)   autocmd!
325)   autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu   | endif
326)   autocmd BufLeave,FocusLost,InsertEnter,WinLeave   * if &nu                  | set nornu | endif
327) augroup END
dblume Add Neovim configs

dblume authored 6 months ago

328) 
329)   autocmd BufRead *.txt set wrap linebreak   " "soft" wrap of existing lines
330)   autocmd BufRead README set wrap linebreak  " "soft" wrap of existing lines
331)   autocmd BufRead *.rs :setlocal tags=./rusty-tags.vi;/
332) 
dblume Always start on first line...

dblume authored 6 months ago

333)   " When editing a file, always jump to the last cursor position...
dblume Add Neovim configs

dblume authored 6 months ago

334)   autocmd BufReadPost *
dblume Always start on first line...

dblume authored 6 months ago

335)   \ if line("'\"") > 0 && line ("'\"") <= line("$") |
dblume When openging files jump to...

dblume authored 4 months ago

336)   \   exe "normal! g`\"" |
dblume Add Neovim configs

dblume authored 6 months ago

337)   \ endif
dblume Always start on first line...

dblume authored 6 months ago

338)   " ...except for gitcommit where we always want to start at the top
339)   autocmd FileType gitcommit exe "normal! gg"
dblume Retrieve git branch only on...

dblume authored 6 months ago

340) 
dblume Only show encoding and form...

dblume authored 6 months ago

341)   autocmd BufNewFile,BufReadPost *
342)   \ let b:git_branch = GitBranch() |
343)   \ let b:enc_fmt = EncodingAndFormat()
344)   autocmd BufEnter *
345)   \ let b:git_branch = GitBranch() |
346)   \ let b:enc_fmt = EncodingAndFormat()
dblume Don't set cursorline if we'...

dblume authored 5 months ago

347) 
348)   " I only use a cursorline style for the number column
349)   autocmd OptionSet number,relativenumber if v:option_new | set cursorline | endif
dblume Add Neovim configs

dblume authored 6 months ago

350) endif
351) 
352) " This requires vim to be compiled with +python
353) " Use auto complete in insert mode with ctrl-x, ctrl-o
354) " See :help new-omni-completion for more.
355) filetype plugin on
356) set omnifunc=syntaxcomplete#Complete
357) 
358) " Torn on whether I like the omni completion preview window left open or not.
359) " autocmd CompleteDone * pclose
360) 
361) " Omni completion via ctrl-space (in addition to ctrl-x ctrl-o)
dblume Sensibly, in neovim <C-Spac...

dblume authored 6 months ago

362) inoremap <C-Space> <C-x><C-o>
dblume Add Neovim configs

dblume authored 6 months ago

363) 
dblume Add commands SynStack and H...

dblume authored 5 months ago

364) " These two commands display syntax/highlight info for what's under the cursor.
365) if exists(":SynStack") != 2
366)     command SynStack :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
367) endif
368) 
369) function! SynGroup()
370)     let l:s = synID(line('.'), col('.'), 1)
371)     echo synIDattr(l:s, 'name') . ' -> ' . synIDattr(synIDtrans(l:s), 'name')
372) endfun
373) command Hi :call SynGroup()
dblume Add Neovim configs

dblume authored 6 months ago

374) 
375) " From https://stackoverflow.com/questions/15393301/how-to-automatically-sort-quickfix-entries-by-line-text-in-vim
376) " :grep term %
377) " :grep -r term path/
378) " :cw
379) " :ccl (or C-w,q)
380) autocmd! QuickfixCmdPost * call MaybeSortQuickfix('QfStrCmp')
381) 
382) function! MaybeSortQuickfix(fn)
383) "    exe 'normal! '  " Doesn't work. Wanted to jump back to where we were.
384)     let t = getqflist({'title': 1}).title
385)     " Only sort the files if for search-style commands, not "make".
386)     if stridx(t, "cs ") == 0 || stridx(t, ":gr") == 0 || stridx(t, ":vim") == 0 || stridx(t, ":rg") == 0
387)         call setqflist(sort(getqflist(), a:fn), 'r')
388)         call setqflist([], 'r', {'title': t})
389)     endif
390)     cwindow
391) endfunction
392) 
393) function! QfStrCmp(e1, e2)
394)     let [t1, t2] = [bufname(a:e1.bufnr), bufname(a:e2.bufnr)]
395)     return t1 <# t2 ? -1 : t1 ==# t2 ? 0 : 1
396) endfunction
397) 
398) " Use ripgrep for search instead of grep
399) if executable('rg')
400)     " set grepprg=rg\ --vimgrep\ --hidden\ —glob '!.git'
401)     set grepprg=rg
402) endif
403) " Navigate quickfix list with ease
404) nnoremap <silent> [q :cprevious<CR>
405) nnoremap <silent> ]q :cnext<CR>
406) 
dblume Add DiffOrig from the vim h...

dblume authored 5 months ago

407) " From `:help :DiffOrig`.
dblume Make "set ruler!" change st...

dblume authored 5 months ago

408) if exists(":DiffOrig") != 2
409)   command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
dblume Add DiffOrig from the vim h...

dblume authored 5 months ago

410)     \ | diffthis | wincmd p | diffthis
dblume Make "set ruler!" change st...

dblume authored 5 months ago

411) endif
dblume Add DiffOrig from the vim h...

dblume authored 5 months ago

412) 
dblume Add Neovim configs

dblume authored 6 months ago

413) " I use Roboto Mono from https://github.com/powerline/fonts
414) " On iTerm2, Preferences -> Profiles -> Text -> Font
415) " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
416) " C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -o Font="Roboto Mono for Powerline" -
417) 
418) " Settings that make netrw more like NERDTree
419) let g:netrw_banner = 0
420) let g:netrw_liststyle = 3
421) let g:netrw_browse_split = 4
422) let g:netrw_altv = 1
423) " set g:netrw_winsize to negative for absolute width, positive for relative
424) let g:netrw_winsize = -36
425) " let g:netrw_winsize = 35
426) " sort is affecting only: directories on the top, files below
427) let g:netrw_sort_sequence = '[\/]$,*'
428) 
429) " Experimenting with vim-rooter
430) let g:rooter_patterns = ['.git', 'Makefile', 'builds/']
431) let g:rooter_cd_cmd = 'lcd'
432) let g:rooter_manual_only = 1
433) 
dblume Add "rainbow" plugin for co...

dblume authored 3 months ago

434) " 'Rainbow Parentheses Improved' https://github.com/luochen1990/rainbow/
dblume Exclude filetype rokulog fr...

dblume authored 3 months ago

435) let g:rainbow_conf = {
436) \   'ctermfgs': ['223', 'lightblue', '180', 'green', 'yellow', '111'],
437) \   'separately': { 'rokulog': 0 }
438) \ }
dblume Add "rainbow" plugin for co...

dblume authored 3 months ago

439) let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
440) 
dblume Add commands SynStack and H...

dblume authored 5 months ago

441) " See https://wiki.dlma.com/neovim#cscope
442) lua << EOF
dblume Disable maps in cscope_maps

dblume authored 2 days ago

443)   require('cscope_maps').setup({ 
444)     disable_maps = true, -- Mapping C-] to :Cstag <cword> worse than :tag <cword>
445) -- Alternatively, if we liked the mappings, then customise these two:
446) --    skip_input_prompt = true,
447) --    cscope = { skip_picker_for_single_result = true },
448)   })