diff --git a/home/.config/nvim/coc-settings.json b/home/.config/nvim/coc-settings.json index 0faf7cd..3e2101c 100644 --- a/home/.config/nvim/coc-settings.json +++ b/home/.config/nvim/coc-settings.json @@ -1,5 +1,5 @@ { "rust-analyzer.server.path": "~/.cargo/bin/rust-analyzer", "suggest.acceptSuggestionOnCommitCharacter": true, - "diagnostic.displayByAle": true + "diagnostic.displayByAle": false } diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index 9e10e1b..0ae7cd9 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -104,9 +104,16 @@ map % :split " join with j nnoremap j :join +" move screen a line up/down with alt U/D +nmap kzz +nmap 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 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("")) + return fzf#run({'source': suggestions, 'sink': function("FzfSpellSink"), 'down': 10 }) +endfunction +nnoremap z :call FzfSpell() " don't make things written as `something` a typo syntax region cBackTickNoSpell start=+`+ end=+`+ diff --git a/home/.gitconfig b/home/.gitconfig index 2039469..50fcf7a 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -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]