kakrc modified
This commit is contained in:
parent
a8745a54ec
commit
34b97cae06
39
kakrc
39
kakrc
@ -1,7 +1,7 @@
|
|||||||
# Load plug.kak
|
# Load plug.kak
|
||||||
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
||||||
|
plug "alexherbo2/auto-pairs.kak"
|
||||||
plug "andreyorst/plug.kak" noload
|
plug "andreyorst/plug.kak" noload
|
||||||
# plug kak-lsp
|
|
||||||
plug "kak-lsp/kak-lsp" do %{
|
plug "kak-lsp/kak-lsp" do %{
|
||||||
cargo build --release --locked
|
cargo build --release --locked
|
||||||
cargo install --force --path .
|
cargo install --force --path .
|
||||||
@ -22,7 +22,7 @@ plug "kak-lsp/kak-lsp" do %{
|
|||||||
define-command ee -docstring 'go to current error/warning from lsp' %{ lsp-find-error --include-warnings; lsp-find-error --previous --include-warnings }
|
define-command ee -docstring 'go to current error/warning from lsp' %{ lsp-find-error --include-warnings; lsp-find-error --previous --include-warnings }
|
||||||
|
|
||||||
define-command lsp-restart -docstring 'restart lsp server' %{ lsp-stop; lsp-start }
|
define-command lsp-restart -docstring 'restart lsp server' %{ lsp-stop; lsp-start }
|
||||||
hook global WinSetOption filetype=(c|cpp|cc|rust|javascript|typescript) %{
|
hook global WinSetOption filetype=(c|cpp|sh|cc|rust|javascript|typescript|go) %{
|
||||||
set-option window lsp_auto_highlight_references true
|
set-option window lsp_auto_highlight_references true
|
||||||
set-option window lsp_hover_anchor false
|
set-option window lsp_hover_anchor false
|
||||||
lsp-auto-hover-enable
|
lsp-auto-hover-enable
|
||||||
@ -85,6 +85,15 @@ set global tabstop 4
|
|||||||
add-highlighter global/ number-lines
|
add-highlighter global/ number-lines
|
||||||
add-highlighter global/ wrap
|
add-highlighter global/ wrap
|
||||||
|
|
||||||
|
plug "andreyorst/kaktree" config %{
|
||||||
|
hook global WinSetOption filetype=kaktree %{
|
||||||
|
remove-highlighter buffer/numbers
|
||||||
|
remove-highlighter buffer/matching
|
||||||
|
remove-highlighter buffer/wrap
|
||||||
|
remove-highlighter buffer/show-whitespaces
|
||||||
|
}
|
||||||
|
kaktree-enable
|
||||||
|
}
|
||||||
# system clipboard usermode
|
# system clipboard usermode
|
||||||
map global user y '<a-|>xclip -in -selection clipboard >&- 2>&-<ret>' \
|
map global user y '<a-|>xclip -in -selection clipboard >&- 2>&-<ret>' \
|
||||||
-docstring 'Copy selected text to system clipboard'
|
-docstring 'Copy selected text to system clipboard'
|
||||||
@ -94,29 +103,3 @@ map global user p '<a-!>xclip -out -selection clipboard<ret>' \
|
|||||||
-docstring 'Paste system clipboard after'
|
-docstring 'Paste system clipboard after'
|
||||||
map global user R '|xclip -out -selection clipboard<ret>' \
|
map global user R '|xclip -out -selection clipboard<ret>' \
|
||||||
-docstring 'Replace selection from system clipboard'
|
-docstring 'Replace selection from system clipboard'
|
||||||
|
|
||||||
## TESTING: copy and paste from TMUX
|
|
||||||
#if [ -n "$DISPLAY" ]; then
|
|
||||||
## printf %s "$kak_main_reg_dquote" | xsel --input --clipboard
|
|
||||||
#elif [ -n "$TMUX" ]; then
|
|
||||||
# map global user y '<a-|>tmux set-buffer --<ret>'
|
|
||||||
#fi
|
|
||||||
## Enable different options depending if we are inside TMUX or not
|
|
||||||
#try %{
|
|
||||||
# evaluate-commands %sh{ [ $tmux ] || echo "fail" }
|
|
||||||
# try %{
|
|
||||||
# hook global registermodified '"' %{ nop %sh{
|
|
||||||
# tmux set-buffer -- "$kak_main_reg_dquote"
|
|
||||||
# }}
|
|
||||||
# map global user p '!tmux show-buffer<ret>'
|
|
||||||
# map global user p '<a-!>tmux show-buffer<ret>'
|
|
||||||
# map global user r '|tmux show-buffer<ret>'
|
|
||||||
# }
|
|
||||||
#} catch %{
|
|
||||||
# try %{
|
|
||||||
# map global user y '<a-|>xclip -in -selection clipboard >&- 2>&-<ret>'
|
|
||||||
# map global user p '!xclip -out -selection clipboard<ret>'
|
|
||||||
# map global user p '<a-!>xclip -out -selection clipboard<ret>'
|
|
||||||
# map global user r '|xclip -out -selection clipboard<ret>'
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user