Skip to content

Commit 75bd9d0

Browse files
committed
spellcheck: add make-step and devshell.
Also update dictionary, and change a spelling mistake.
1 parent a6615f2 commit 75bd9d0

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

.github/data/project-dictionary.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
personal_ws-1.1 en 1000 utf-8
1+
personal_ws-1.1 en 109 utf-8
2+
AbsoluteIndexer
23
Autosnippets
34
Cfigure
45
Cimg
@@ -81,6 +82,7 @@ namespace
8182
namespaces
8283
nilsnip
8384
nvim
85+
otf
8486
panvimdoc
8587
plaintext
8688
pos
@@ -89,6 +91,7 @@ postfix
8991
pre
9092
precompile
9193
predefining
94+
rafamadriz
9295
restoreNode
9396
restoreNodes
9497
runtime

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/lua/luasnip-jsregexp.so
55
/deps/luasnip-jsregexp.so
66
/lua/luasnip-jsregexp.lua
7+
/.aspell.en.prepl

DOC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ a snippet's `condition` or `show_condition`. These are grouped accordingly into
15911591

15921592
- `line_begin`: only expand if the cursor is at the beginning of the line.
15931593
- `trigger_not_preceded_by(pattern)`: only expand if the character before the
1594-
trigger does not match `pattern`. This is a generalisation of `wordTrig`,
1594+
trigger does not match `pattern`. This is a generalization of `wordTrig`,
15951595
which can be implemented as `trigger_not_preceded_by("[%w_]")`, and is
15961596
available as `word_trig_condition`.
15971597

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,8 @@ test_nix: nvim install_jsregexp
116116
if ${TEST_07}; then nix develop .#test_nvim_07 -c make test; fi; \
117117
if ${TEST_09}; then nix develop .#test_nvim_09 -c make test; fi; \
118118
if ${TEST_MASTER}; then nix develop .#test_nvim_master -c make test; fi;
119+
120+
spellcheck:
121+
# grabbed from word-warden.
122+
aspell --home-dir . --mode markdown --lang en --personal ./.github/data/project-dictionary.txt check DOC.md
123+
aspell --home-dir . --mode markdown --lang en --personal ./.github/data/project-dictionary.txt check README.md

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
true_bin = "${pkgs-treesitter.coreutils}/bin/true";
2727
false_bin = "${pkgs-treesitter.coreutils}/bin/false";
2828
in {
29+
default = pkgs-treesitter.mkShell {
30+
packages = with pkgs-treesitter; [
31+
(aspellWithDicts (dicts: with dicts; [en]))
32+
bashInteractive
33+
gnumake
34+
];
35+
};
2936
test_nvim_07 = nvim_07.outputs.devShell.${pkgs-treesitter.system}.overrideAttrs(attrs: {
3037
TEST_07=true_bin;
3138
TEST_09=false_bin;

0 commit comments

Comments
 (0)