AutoYADM commit: 2025-07-11 17:01:31
This commit is contained in:
parent
6b7c794136
commit
c5fe1d3d91
6 changed files with 30 additions and 19 deletions
|
@ -153,8 +153,8 @@ hook global WinSetOption filetype=man %{
|
|||
|
||||
hook global WinSetOption filetype=kdl %{
|
||||
set-option window formatcmd "kdlfmt format -"
|
||||
hook -group kdl-auto-format window BufWritePre .* format
|
||||
hook -once -always WinSetOption filetype=.* %{
|
||||
hook -group kdl-auto-format window BufWritePre .* %{ try format }
|
||||
hook -once -always window WinSetOption filetype=.* %{
|
||||
unset-option window formatcmd
|
||||
remove-hooks window kdl-auto-format
|
||||
}
|
||||
|
|
|
@ -10,10 +10,3 @@ define-command ide %{
|
|||
# set global toolsclient tools
|
||||
}
|
||||
|
||||
# project-specific configuration
|
||||
hook global BufCreate (.*/)?(\.kakrc\.local|\.kakrc\.local|\.kakrc) %{
|
||||
set-option buffer filetype kak
|
||||
}
|
||||
try %{ source .kakrc } catch %{
|
||||
try %{ source .kakrc.local } catch %{ try %{ source .local.kakrc } }
|
||||
}
|
||||
|
|
5
.config/kak/autoload/repl.kak
Normal file
5
.config/kak/autoload/repl.kak
Normal file
|
@ -0,0 +1,5 @@
|
|||
provide-module repl %∴
|
||||
define-command repl %{
|
||||
new %{ edit -scratch; set buffer filetype kak }
|
||||
}
|
||||
∴
|
15
.config/kak/autoload/root.kak
Normal file
15
.config/kak/autoload/root.kak
Normal file
|
@ -0,0 +1,15 @@
|
|||
provide-module root %∴
|
||||
declare-option str-list root_globs .git .kakrc kakrc
|
||||
# project-specific configuration
|
||||
hook global BufCreate (.*/)?(\.kakrc\.local|\.kakrc\.local|\.kakrc) %{
|
||||
set-option buffer filetype kak
|
||||
}
|
||||
try %{ source .kakrc } catch %{
|
||||
try %{ source .kakrc.local } catch %{ try %{ source .local.kakrc } }
|
||||
}
|
||||
|
||||
hook global KakBegin .* %{
|
||||
# discover project root
|
||||
}
|
||||
|
||||
∴
|
Loading…
Add table
Add a link
Reference in a new issue