From 2a17e1059bcbe40741ce43df0c0c52308712ee34 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 6 Jul 2023 09:34:40 +0200 Subject: [PATCH 1/5] set gitconfig for cscherrNT --- home/.gitconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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] From dfb116b2e5b94b02f6fd6584d3bf45dcc8ac3e28 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 6 Jul 2023 10:00:36 +0200 Subject: [PATCH 2/5] fancy fzf spell correction vim --- home/.config/nvim/common.vim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index 9e10e1b..158f6e5 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -117,8 +117,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=+`+ From 7c3735741b9c3610c607d246f2b626d5cfe200e3 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 6 Jul 2023 10:19:15 +0200 Subject: [PATCH 3/5] spellfile --- home/.config/nvim/common.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index 158f6e5..52fc327 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -107,6 +107,9 @@ nnoremap j :join " 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 From 5b273734316142fdc4b30f4fb85e1fe5644cdabf Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 6 Jul 2023 13:15:53 +0200 Subject: [PATCH 4/5] move screen with --- home/.config/nvim/common.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index 52fc327..0ae7cd9 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -104,6 +104,10 @@ 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 From 0d9fb6eb17c111b4b349e39370bbb00690c74c5b Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 6 Jul 2023 15:45:45 +0200 Subject: [PATCH 5/5] disable ALE display --- home/.config/nvim/coc-settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }