kakoune: add spellchecking
This commit is contained in:
parent
2e06252195
commit
5a819bfd40
|
@ -23,7 +23,7 @@ plug 'alexherbo2/auto-pairs.kak' config %{
|
||||||
}
|
}
|
||||||
|
|
||||||
plug 'lelgenio/kakoune-mirror-colemak' 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'
|
plug 'delapouite/kakoune-palette'
|
||||||
|
|
|
@ -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 'c' ': find_dir<ret>' -docstring 'change dir'
|
||||||
map global find 'd' ': find_delete<ret>' -docstring 'file to delete'
|
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 \
|
define-command -override -hidden find_file \
|
||||||
%{ evaluate-commands %sh{
|
%{ evaluate-commands %sh{
|
||||||
for line in `fd --strip-cwd-prefix -tf -HE .git | wdmenu -i -p "File: "`; do
|
for line in `fd --strip-cwd-prefix -tf -HE .git | wdmenu -i -p "File: "`; do
|
||||||
|
|
|
@ -130,6 +130,10 @@ in {
|
||||||
kak-lsp
|
kak-lsp
|
||||||
kak-pager
|
kak-pager
|
||||||
kak-man-pager
|
kak-man-pager
|
||||||
|
|
||||||
|
aspell
|
||||||
|
aspellDicts.en
|
||||||
|
aspellDicts.pt_BR
|
||||||
];
|
];
|
||||||
home.activation = {
|
home.activation = {
|
||||||
update_kakoune = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
update_kakoune = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
|
Loading…
Reference in a new issue