From 83728d6fb09e719756c4ba6059761c2f8e7330c0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 6 Feb 2020 23:12:49 +0100 Subject: [PATCH] Add nvim spell dicts and management Added custom term spell dictionary for neovim. Will track any words that should be needed on all my machines. Added spellmake plugin which watches spellfiles and rebuilds the binary whenever a new word has been added through external edits like git. The plugin also automatically adds a gitignore file for the .spl file, and a unison merge strategy through a gitattributes file to any spell directory it finds. Ignoring is due to .spl being automatically generated binary files. The merge strategy ensures that no merge errors will pop up even when words get added in different orders. All it cares about is that the content of the files is the same, in whatever order. --- nvim/.config/nvim/spell/.gitattributes | 1 + nvim/.config/nvim/spell/.gitignore | 2 ++ nvim/.config/nvim/spell/en.utf-8.add | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 nvim/.config/nvim/spell/.gitattributes create mode 100644 nvim/.config/nvim/spell/.gitignore create mode 100644 nvim/.config/nvim/spell/en.utf-8.add diff --git a/nvim/.config/nvim/spell/.gitattributes b/nvim/.config/nvim/spell/.gitattributes new file mode 100644 index 0000000..a0ef753 --- /dev/null +++ b/nvim/.config/nvim/spell/.gitattributes @@ -0,0 +1 @@ +*.add merge=union diff --git a/nvim/.config/nvim/spell/.gitignore b/nvim/.config/nvim/spell/.gitignore new file mode 100644 index 0000000..307eeb8 --- /dev/null +++ b/nvim/.config/nvim/spell/.gitignore @@ -0,0 +1,2 @@ +*.spl +*.sug diff --git a/nvim/.config/nvim/spell/en.utf-8.add b/nvim/.config/nvim/spell/en.utf-8.add new file mode 100644 index 0000000..6216a10 --- /dev/null +++ b/nvim/.config/nvim/spell/en.utf-8.add @@ -0,0 +1,4 @@ +neoliberalism +exchangeability +globalization +nomadism