work to priv #2

Merged
PlexSheep merged 5 commits from cscherrNT/configs:master into master 2023-07-06 21:08:52 +02:00
3 changed files with 20 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{
"rust-analyzer.server.path": "~/.cargo/bin/rust-analyzer",
"suggest.acceptSuggestionOnCommitCharacter": true,
"diagnostic.displayByAle": true
"diagnostic.displayByAle": false
}

View File

@ -104,9 +104,16 @@ map <Leader>% :split<CR>
" join with <leader>j
nnoremap <leader>j :join<CR>
" move screen a line up/down with alt U/D
nmap <A-u> kzz
nmap <A-d> jzz
" spell checking -----------------------------------------------------------------------------------
set spell spelllang=en
" set a location
set spellfile=~/.config/nvim/spell/en.utf-8.add
" go to last or next misspelled word
nnoremap zn ]s
nnoremap zN [s
@ -117,8 +124,15 @@ nnoremap ZN [S
" mark correct with zg, mark bad with zw, undo with zug/zuw
" correct with zc, default is z= but that sucks for qwertz keyboards
nnoremap z<space> z=
" fancy fzf correct with zc, default is z= but that sucks for qwertz keyboards
function! FzfSpellSink(word)
exe 'normal! "_ciw'.a:word
endfunction
function! FzfSpell()
let suggestions = spellsuggest(expand("<cword>"))
return fzf#run({'source': suggestions, 'sink': function("FzfSpellSink"), 'down': 10 })
endfunction
nnoremap z<space> :call FzfSpell()<CR>
" don't make things written as `something` a typo
syntax region cBackTickNoSpell start=+`+ end=+`+

View File

@ -1,7 +1,7 @@
[user]
email = software@cscherr.de
name = PlexSheep
signingkey = software@cscherr.de
email = Christoph.Scherr@newtec.de
name = Christoph J. Scherr
signingkey = Christoph.Scherr@newtec.de
[credential]
helper = store --file ~/.git-credentials
[commit]