Various Terminal Changes
- Kakoune tab completion - Kakoune kitty terminal open - Kitty keybinds - Saner shell variable - Yazi file manager - Flake system (it will keep switching back until I find a fix) - Hardcoded linux gpus, will fix to an if statement
This commit is contained in:
1 parent
94b73b6d67
commit
f60301981c
7 files changed
+194
-75
No files matched your search
+26
-10
@@ -68,21 +68,37 @@ map global normal '<a-?>' '<a-?>(?Si)'
|
||||
map global normal X x_
|
||||
|
||||
# Tab jumps to next snippet entry by default in insert mode
|
||||
map global insert <tab> '<esc>:lsp-snippets-select-next-placeholders<ret>i'
|
||||
map global insert <s-tab> '<esc>:lsp-snippets-select-next-placeholders<ret>i'
|
||||
# map global insert <tab> '<esc>:lsp-snippets-select-next-placeholders<ret>i'
|
||||
# map global insert <s-tab> '<esc>:lsp-snippets-select-next-placeholders<ret>i'
|
||||
|
||||
# When completion menu shows, remap tab to cycle completions — but only if not in a snippet
|
||||
# hook global InsertCompletionShow .* %{
|
||||
# try %{
|
||||
# execute-keys -draft 'h<a-K>\h<ret>'
|
||||
# try %{
|
||||
# eval %sh{ [ -n '${kak_opt_lsp_snippets_placeholder_groups}' ] && echo 'fail' }
|
||||
# map window insert <tab> <c-n>
|
||||
# map window insert <s-tab> <c-p>
|
||||
# hook -once -always window InsertCompletionHide .* %{
|
||||
# unmap window insert <tab> <c-n>
|
||||
# unmap window insert <s-tab> <c-p>
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
hook global InsertCompletionShow .* %{
|
||||
try %{
|
||||
# this command temporarily removes cursors preceded by whitespace;
|
||||
# if there are no cursors left, it raises an error, does not
|
||||
# continue to execute the mapping commands, and the error is eaten
|
||||
# by the `try` command so no warning appears.
|
||||
execute-keys -draft 'h<a-K>\h<ret>'
|
||||
try %{
|
||||
eval %sh{ [ -n '${kak_opt_lsp_snippets_placeholder_groups}' ] && echo 'fail' }
|
||||
map window insert <tab> <c-n>
|
||||
map window insert <s-tab> <c-p>
|
||||
hook -once -always window InsertCompletionHide .* %{
|
||||
unmap window insert <tab> <c-n>
|
||||
unmap window insert <s-tab> <c-p>
|
||||
}
|
||||
map window insert <tab> <c-n>
|
||||
map window insert <s-tab> <c-p>
|
||||
hook -once -always window InsertCompletionHide .* %{
|
||||
unmap window insert <tab> <c-n>
|
||||
unmap window insert <s-tab> <c-p>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user