<commit_before>" vim: ft=vim
"
" ---------------------
"
" NeoVim configuration
"
" @author = 'himkt'
"
" ---------------------
"

"" use python3 installed globally
let g:python3_host_prog=$SYSTEM_PYTHON_PATH

"" load basic vim configuration
source $HOME/dotfiles/nvim/config.d/vimrc

" load packages
call plug#begin('~/.config/nvim/plugged')
  Plug 'godlygeek/tabular'
  Plug 'google/vim-jsonnet'
  Plug 'jistr/vim-nerdtree-tabs'
  Plug 'junegunn/fzf'
  Plug 'junegunn/fzf.vim'
  Plug 'nathanaelkane/vim-indent-guides'
  Plug 'neoclide/coc.nvim', {'branch': 'release'}
  Plug 'osyo-manga/vim-anzu'
  Plug 'scrooloose/nerdtree'
  Plug 'tpope/vim-rails'
  Plug 'vim-airline/vim-airline'
call plug#end()

" coc.nvim
hi Pmenu           ctermbg=235  ctermfg=228
hi PmenuSel        ctermbg=253  ctermfg=232
hi CocErrorFloat   ctermbg=235  ctermfg=210
hi CocInfoFloat    ctermbg=235  ctermfg=249
hi CocWarningFloat ctermbg=235  ctermfg=208
imap <C-j> <Plug>(coc-snippets-expand)
nmap <silent> cd <Plug>(coc-definition)
nmap <silent> cr <Plug>(coc-references)

" fzf, fzf.vim
command! -bang -nargs=* GGrep
      \ call fzf#vim#grep(
      \   'git grep --color --line-number '.shellescape(<q-args>),
      \   <bang>0,
      \   fzf#vim#with_preview('right'),
      \   <bang>0)

command! -bang -nargs=* Ag call fzf#vim#ag(<q-args>, fzf#vim#with_preview('right'), <bang>0)
nnoremap <silent> <C-p> : call fzf#vim#files('', fzf#vim#with_preview('right'))<CR>

" nardtree
augroup NerdCursor
  autocmd!
  autocmd BufEnter NERD_tree_* hi CursorLine gui=underline
  autocmd BufLeave NERD_tree_* highlight clear CursorLine
  autocmd BufAdd * highlight clear CursorLine
augroup END

let g:NERDTreeMouseMode=3  " open file with one click
let g:NERDTreeDirArrowExpandable = "\u00a0"
let g:NERDTreeDirArrowCollapsible = "\u00a0"
let g:NERDTreeWinSize = 40

" tabular
vnoremap tr : <C-u>Tabularize<Space>/

" vim-anzu
set statusline=%anzu#search_status()
nmap n <Plug>(anzu-n-with-echo)
nmap N <Plug>(anzu-N-with-echo)

" vim-nerdtree-tabs
nnoremap <silent><C-e> : NERDTreeTabsToggle<CR>
map      <C-l>         :tabn<CR>
map      <C-h>         :tabp<CR>

" vim-jsonnet
let g:jsonnet_fmt_on_save = 0

" vim-indent-guide
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd  ctermbg=black
hi IndentGuidesEven ctermbg=233
<commit_msg>Remove Ag as it is provided as default keymap<commit_after>" vim: ft=vim
"
" ---------------------
"
" NeoVim configuration
"
" @author = 'himkt'
"
" ---------------------
"

"" use python3 installed globally
let g:python3_host_prog=$SYSTEM_PYTHON_PATH

"" load basic vim configuration
source $HOME/dotfiles/nvim/config.d/vimrc

" load packages
call plug#begin('~/.config/nvim/plugged')
  Plug 'godlygeek/tabular'
  Plug 'google/vim-jsonnet'
  Plug 'jistr/vim-nerdtree-tabs'
  Plug 'junegunn/fzf'
  Plug 'junegunn/fzf.vim'
  Plug 'nathanaelkane/vim-indent-guides'
  Plug 'neoclide/coc.nvim', {'branch': 'release'}
  Plug 'osyo-manga/vim-anzu'
  Plug 'scrooloose/nerdtree'
  Plug 'tpope/vim-rails'
  Plug 'vim-airline/vim-airline'
call plug#end()

" coc.nvim
hi Pmenu           ctermbg=235  ctermfg=228
hi PmenuSel        ctermbg=253  ctermfg=232
hi CocErrorFloat   ctermbg=235  ctermfg=210
hi CocInfoFloat    ctermbg=235  ctermfg=249
hi CocWarningFloat ctermbg=235  ctermfg=208
imap <C-j> <Plug>(coc-snippets-expand)
nmap <silent> cd <Plug>(coc-definition)
nmap <silent> cr <Plug>(coc-references)

" fzf, fzf.vim
command! -bang -nargs=* GGrep
      \ call fzf#vim#grep(
      \   'git grep --color --line-number '.shellescape(<q-args>),
      \   <bang>0,
      \   fzf#vim#with_preview('right'),
      \   <bang>0)

nnoremap <silent> <C-p> : call fzf#vim#files('', fzf#vim#with_preview('right'))<CR>

" nardtree
augroup NerdCursor
  autocmd!
  autocmd BufEnter NERD_tree_* hi CursorLine gui=underline
  autocmd BufLeave NERD_tree_* highlight clear CursorLine
  autocmd BufAdd * highlight clear CursorLine
augroup END

let g:NERDTreeMouseMode=3  " open file with one click
let g:NERDTreeDirArrowExpandable = "\u00a0"
let g:NERDTreeDirArrowCollapsible = "\u00a0"
let g:NERDTreeWinSize = 40

" tabular
vnoremap tr : <C-u>Tabularize<Space>/

" vim-anzu
set statusline=%anzu#search_status()
nmap n <Plug>(anzu-n-with-echo)
nmap N <Plug>(anzu-N-with-echo)

" vim-nerdtree-tabs
nnoremap <silent><C-e> : NERDTreeTabsToggle<CR>
map      <C-l>         :tabn<CR>
map      <C-h>         :tabp<CR>

" vim-jsonnet
let g:jsonnet_fmt_on_save = 0

" vim-indent-guide
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd  ctermbg=black
hi IndentGuidesEven ctermbg=233

{'fraction_non_alphanumeric': 0.14466623738999784, 'fraction_numerical': 0.021249195106245976, 'mean_word_length': 3.8340248962655603, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '623529', 'n_tokens_mistral': 2085, 'n_tokens_neox': 1905, 'n_words': 380}