Compare commits

...

3 commits

Author SHA1 Message Date
Bruno BELANYI db89917840 flake: checks: enable 'typos'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2024-09-27 14:10:24 +00:00
Bruno BELANYI e08f3e5b2e treewide: add 'typos' ignore directives 2024-09-27 14:10:02 +00:00
Bruno BELANYI d6e77b62b4 project: add typos configuration 2024-09-27 14:09:07 +00:00
5 changed files with 15 additions and 5 deletions

7
.typos.toml Normal file
View file

@ -0,0 +1,7 @@
[default]
extend-ignore-re = [
# spellchecker:disable-line
"(?Rm)^.*(#|//|--)\\s*spellchecker:disable-line$",
# spellchecker:<on|off>
"(?s)(#|//|--)\\s*spellchecker:off.*?\\n\\s*(#|//|--)\\s*spellchecker:on",
]

View file

@ -26,6 +26,10 @@
stylua = {
enable = true;
};
typos = {
enable = true;
};
};
};
};

View file

@ -109,13 +109,13 @@ local keys = {
{ "yoc", desc = "Cursor line" },
{ "yod", desc = "Diff" },
{ "yof", "<cmd>FormatToggle<CR>", desc = "LSP Formatting" },
{ "yoh", desc = "Search high-lighting" },
{ "yoh", desc = "Search high-lighting" }, -- spellchecker:disable-line
{ "yoi", desc = "Case insensitive search" },
{ "yol", desc = "List mode" },
{ "yon", desc = "Line numbers" },
{ "yop", "<Plug>(qf_loc_toggle)", desc = "Location list" },
{ "yoq", "<Plug>(qf_qf_toggle)", desc = "Quickfix list" },
{ "yor", desc = "Relative line numbers" },
{ "yor", desc = "Relative line numbers" }, -- spellchecker:disable-line
{ "you", desc = "Cursor column" },
{ "yov", desc = "Virtual editing" },
{ "yow", desc = "Text wrapping" },

View file

@ -12,8 +12,7 @@ let
movementKeys = [ "Left" "Down" "Up" "Right" ];
vimMovementKeys = [ "h" "j" "k" "l" ];
shutdownMode =
"(l)ock, (e)xit, switch_(u)ser, (h)ibernate, (r)eboot, (Shift+s)hutdown";
"(l)ock, (e)xit, switch_(u)ser, (h)ibernate, (r)eboot, (Shift+s)hutdown"; # spellchecker:disable-line
# Takes an attrset of bindings for movement keys, transforms it to Vim keys
toVimKeyBindings =
let

View file

@ -49,7 +49,7 @@ in
})
(lib.optionalAttrs config.my.home.bluetooth.enable {
block = "bluetooth";
mac = "F7:78:BA:76:52:F7";
mac = "F7:78:BA:76:52:F7"; # spellchecker:disable-line
format = " $icon MX Ergo{ $percentage|} ";
disconnected_format = "";
})