1
0
Fork 0

Compare commits

...

5 Commits

Author SHA1 Message Date
Michel 3045275537 feat: add clang-format key 2022-11-04 16:33:04 +01:00
Michel a34e0f931a style: improve comments 2022-11-04 16:32:16 +01:00
Michel 71fa8e5f65 Merge remote-tracking branch 'origin/main' 2022-11-03 17:50:31 +01:00
Michel 2dad31496b build: asdf tool 2022-11-03 17:48:46 +01:00
Michel 724ae5b167 build: update submodules 2022-11-03 17:47:49 +01:00
17 changed files with 76 additions and 25 deletions

5
.envrc Normal file
View File

@ -0,0 +1,5 @@
# See `direnv stdlib` for special functions provided by _direnv_.
use asdf
# RipGrep settings
export RIPGREP_CONFIG_PATH=$PWD/.ripgreprc

28
.ripgreprc Normal file
View File

@ -0,0 +1,28 @@
## Colors
#
--colors=path:bg:23
--colors=path:fg:253
## Smart-case Search
#
# - case-insensitive if the pattern is all lowercase;
# - case-sensitive otherwise.
#
# Overrides -s/--case-sensitive and -i/--ignore-case flags.
--smart-case
## Files Types
#
# --type-list to show all supported file types and their corresponding globs.
# --type-not to exclude a type from search.
#
--type-not=bzip2
--type-not=gzip
--type-not=xz
## Sorting in ascending order
# - none (Default) Do not sort results. Fastest. Can be multi-threaded.
# - path Sort by file path. Always single-threaded.
# - modified Sort by the last modified time on a file. Always single-threaded.
#
--sort=path

3
.tool-versions Normal file
View File

@ -0,0 +1,3 @@
direnv 2.32.1
ninja 1.11.1
python system

@ -1 +1 @@
Subproject commit 3ce448c9687ae96dea0caf4da388ecd8d9072f72
Subproject commit 8b4a9523632049b3b373de1233bef346073b8982

@ -1 +1 @@
Subproject commit eed488b1cd1867bd25f19f90e10440c5cc7d6424
Subproject commit fc85a6f07c2cd694be93496ffad75be126240068

@ -1 +1 @@
Subproject commit 226203be173bf0b95ee2a5cb6575ae604b3f9f7a
Subproject commit 8985da7669bbd73afce85ef0e4a3e1ce2e488595

@ -1 +1 @@
Subproject commit 439c576a229769615fa1060cb8d14686c54a22c1
Subproject commit 733339b699824f0a3c90910c26d8fd949f13783c

@ -1 +1 @@
Subproject commit 4cc954f5cad7ebf6c20b652c6cd6966940752b5b
Subproject commit 3c7e008a9922702be979dbfe3c5280313f53618b

@ -1 +1 @@
Subproject commit bf3480dc9ae7bea34c78fbba4c65b4548b5b1fea
Subproject commit 3d188ed2113431cf8dac77be61b842acb64433d9

@ -1 +1 @@
Subproject commit 6ae79e75a44ac3acb88f381ed52898c9f9e01d62
Subproject commit 01f3e0af928857128eec8d998948b80ed1678c18

@ -1 +1 @@
Subproject commit 4237c4647ec30215223d597f6172c8c46b8b239e
Subproject commit 728b47728c31bcbc92fbc196c00230d601ca2a15

@ -1 +1 @@
Subproject commit 3654775824337f466109f00eaf6759760f65be34
Subproject commit e87cd90dc09c2a203e13af9704bd0ef79303d755

@ -1 +1 @@
Subproject commit f140b8c89b4f82a87770b5ad4973d34187e9357e
Subproject commit 0f0529bf2a336a4e824a26b733220548d32697a6

@ -1 +1 @@
Subproject commit ded11946c04aeab5526f869174044019ae9e3c32
Subproject commit 400a12081f188f3fb639f8f962456764f39c6ff1

@ -1 +1 @@
Subproject commit 1d25e8e5dc4062e38cab1a461934ee5e9d59e5a8
Subproject commit 8332f123a63c739c870c96907d987cc3ff719d24

@ -1 +1 @@
Subproject commit a2258658661e42dd4cdba4958805dbad1fe29ef4
Subproject commit 71f239af28b7214eebb60d4ea5bd040291fb7e33

39
vimrc
View File

@ -32,7 +32,6 @@
" git submodule foreach 'git fetch; echo "\n\n"'
" git submodule foreach 'LANG=C git status | egrep --color=always "(up to date|behind)"; echo -n " "; git branch -r | grep HEAD; echo "\n\n"'
" git submodule foreach 'git merge FETCH_HEAD; echo "\n\n"'
" 2020-10: git checkout master / git merge origin/master
" To create all doc indexes
" :helptags ALL
@ -207,22 +206,30 @@ set foldlevel=1
set backup
set undofile
" 21 command line editing {{{2
" 21 - command line editing {{{2
set wildignore+=*.o
" 23 quickfix {{{2
" 23 - quickfix {{{2
" See https://phelipetls.github.io/posts/extending-vim-with-ripgrep/
" External grep
"
" Tutorial: https://phelipetls.github.io/posts/extending-vim-with-ripgrep/
"
if executable("rg")
" Quickfix Unimpaired: [q ]q
set grepprg=rg\ --vimgrep
set grepformat=%f:%l:%c:%m
" Quickfix
" :gr[ep]
" :grepa[dd]
" Location Unimpaired: [l ]l
" Location
" :lgr[ep][!]
set grepprg=rg\ --vimgrep
set grepformat=%f:%l:%c:%m
" Unimpaired shortcuts:
" [^Q ]^Q [Q ]Q [q ]q (file/first/previous)
" Same with L
endif
" 26 - various {{{2
@ -233,6 +240,8 @@ set gdefault " use the 'g' flag for ":substitute"
""" Key Mapping {{{1
"""""""""""""""""""""""
" To test whether a mapping is already used: try the command with no {rhs}
" See :map-special-keys, :map-special-chars & <Char>
" To see all mappings into a buffer:
@ -242,6 +251,7 @@ set gdefault " use the 'g' flag for ":substitute"
""
let mapleader="²"
" Use with <leader>
nmap ( [
nmap ) ]
@ -279,6 +289,11 @@ vnoremap <leader><F1> y:tab help <c-R>"
nnoremap <S-F1> :NERDTree ~/.vim<cr>
nnoremap <C-S-F1> :tabedit ~/.vim/vimrc<cr>
"" External Tools {{{2
""
noremap <leader>k :py3f /usr/share/clang/clang-format-14/clang-format.py<cr>
"" Operator-pending {{{2
" (see Subversive module)
@ -451,8 +466,8 @@ packadd! ingo-library
nmap <leader>* <Plug>MarkSearchAnyNext
nmap <leader># <Plug>MarkSearchAnyPrev
nmap <Leader>M <Plug>MarkToggle
nmap <Leader>N <Plug>MarkConfirmAllClear
nmap <leader>M <Plug>MarkToggle
nmap <leader>N <Plug>MarkConfirmAllClear
if &t_Co == 256 || has("gui_running")
let g:mwDefaultHighlightingPalette = 'extended'
@ -599,8 +614,8 @@ autocmd FileType cpp setlocal comments^=:/// foldmethod=syntax foldlevel=0
""
"" Find, substitute, and abbreviate several variations of a word at once.
" abolish-coercion
" camelCase MixedCase _snake_case UPPERCASE -dash-case dot.case space Title
" :help abolish-coercion
"" ALE {{{2
""