This commit is contained in:
2023-09-28 12:21:01 +02:00
parent 7e3ad70840
commit e2772e383c
17 changed files with 517 additions and 722 deletions

View File

@@ -1,4 +1,4 @@
(import-macros {: exec : map!} :hibiscus.vim)
(import-macros {: exec! : map!} :hibiscus.vim)
(local M {})
@@ -58,15 +58,15 @@
(fn [command _] (do_command (. command.arguments 1 :falsePositives) :hiddenFalsePositives)))
(fn post_attach []
(exec [[:setlocal "spell"] [:setlocal "nospell"]])
(exec! [[:setlocal "spell"] [:setlocal "nospell"]])
(update_config "en-US" "dictionary")
(update_config "en-US" "disabledRules")
(update_config "en-US" "hiddenFalsePositives")
(map! [n :buffer :verbose] :zug (fn [] (exec [[:normal! "zug"]])
(map! [n :buffer :verbose] :zug (fn [] (exec! [[:normal! "zug"]])
(update_config "en-US" "dictionary")
nil)
"Remove word from spellfile and update ltex")
(map! [n :buffer :verbose] :zg (fn [] (exec [[:normal! "zg"]])
(map! [n :buffer :verbose] :zg (fn [] (exec! [[:normal! "zg"]])
(update_config "en-US" "dictionary")
nil)
"Add word to spellfile and update ltex")