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:
venomade committed 2026-08-17 16:41:05 +01:00
1 parent 94b73b6d67
commit f60301981c
7 files changed
+194 -75

No files matched your search

+26 -10
View File
@@ -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>
}
}
}
+2 -1
View File
@@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ pkgs, lib, config, ... }:
{
imports = [ ./colors.nix ];
@@ -19,6 +19,7 @@
(builtins.readFile ./colemak.kak)
(builtins.readFile ./config.kak)
(builtins.readFile ./plugins.kak)
"map global window-mode t ':kitty-terminal-window ${config.shellpath}<ret>' -docstring 'create terminal window'"
];
plugins = import ./plugins.nix { inherit pkgs lib; };