kakoune: add spellchecking

This commit is contained in:
Leonardo Eugênio 2023-01-21 16:24:40 -03:00
parent 2e06252195
commit 5a819bfd40
3 changed files with 14 additions and 1 deletions

View file

@ -23,7 +23,7 @@ plug 'alexherbo2/auto-pairs.kak' config %{
}
plug 'lelgenio/kakoune-mirror-colemak' config %{
map global user "s" ': enter-user-mode mirror<ret>'
map global user "s" ': enter-user-mode mirror<ret>' -docstring 'mirror mode'
}
plug 'delapouite/kakoune-palette'

View file

@ -35,6 +35,15 @@ map global find 'm' ': find_git_modified<ret>' -docstring 'git modified files'
map global find 'c' ': find_dir<ret>' -docstring 'change dir'
map global find 'd' ': find_delete<ret>' -docstring 'file to delete'
map global user 'S' ': find_spell<ret>' -docstring 'pick language for spellchecking'
define-command -override -hidden find_spell \
%{ evaluate-commands %sh{
for line in `aspell dump dicts | wdmenu -i -p "Language: "`; do
echo "spell '$line'"
done
} }
define-command -override -hidden find_file \
%{ evaluate-commands %sh{
for line in `fd --strip-cwd-prefix -tf -HE .git | wdmenu -i -p "File: "`; do

View file

@ -130,6 +130,10 @@ in {
kak-lsp
kak-pager
kak-man-pager
aspell
aspellDicts.en
aspellDicts.pt_BR
];
home.activation = {
update_kakoune = lib.hm.dag.entryAfter [ "writeBoundary" ] ''