Compare commits

...

5 commits

3 changed files with 24 additions and 4 deletions

View file

@ -82,10 +82,10 @@
<!-- Set default monospace font -->
<alias>
<family>monospace</family>
<prefer><family>JetBrains Mono</family></prefer>
<prefer><family>Source Code Pro</family></prefer>
</alias>
<alias>
<family>JetBrains Mono</family>
<family>Source Code Pro</family>
<default><family>monospace</family></default>
</alias>

View file

@ -23,8 +23,16 @@ set global lsp_diagnostic_line_error_sign '║'
set global lsp_diagnostic_line_warning_sign '┊'
set global lsp_hover_anchor true
set global lsp_auto_show_code_actions true
set global lsp_auto_highlight_references true
hook global WinSetOption filetype=(zig|go|typescript|javascript) %{
set window lsp_auto_highlight_references true
map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode"
lsp-enable-window
lsp-auto-signature-help-enable
}
hook global WinSetOption filetype=(svelte) %{
map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
@ -38,7 +46,7 @@ hook global KakEnd .* lsp-exit
# Formateadores
# ------------
hook global WinSetOption filetype=(javascript|typescript|json|css) %{
hook global WinSetOption filetype=(javascript|typescript|json|css|svelte) %{
set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile }
hook buffer BufWritePre .* format-buffer
}
@ -53,6 +61,17 @@ hook global WinSetOption filetype=go %{
hook buffer BufWritePre .* format-buffer
}
# ------------
# Usar Foot
# ------------
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
define-command fzf-terminal -params 1.. -shell-completion %{
set-option global termcmd "footclient --app-id=fzf sh -c"
wayland-terminal %arg{@}
set-option global termcmd "footclient sh -c"
}
# ------------
# Keybindings genericas
# ------------

View file

@ -6,6 +6,7 @@ ulimit -c unlimited
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
export PATH="$HOME/.local/share/pnpm:$PATH"
export ZEIT_DB=~/Sync/zeit.db