too many things
This commit is contained in:
parent
0ab6063ffc
commit
d09dcbaa91
|
@ -1,96 +1,131 @@
|
|||
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
||||
#plugins
|
||||
|
||||
plug "andreyorst/fzf.kak"
|
||||
plug "kak-lsp/kak-lsp" do %{
|
||||
cargo install --locked --force --path .
|
||||
}
|
||||
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
||||
|
||||
lsp-enable
|
||||
lsp-inlay-diagnostics-enable global
|
||||
plug "andreyorst/fzf.kak"
|
||||
plug "kak-lsp/kak-lsp" do %{
|
||||
cargo install --locked --force --path .
|
||||
}
|
||||
|
||||
{%@@ set keys = {
|
||||
"h": key.left,
|
||||
"j": key.down,
|
||||
"k": key.up,
|
||||
"l": key.right,
|
||||
"i": key.insertMode,
|
||||
"n": key.next,
|
||||
} @@%}
|
||||
lsp-enable
|
||||
lsp-inlay-diagnostics-enable global
|
||||
|
||||
{%@@ for old, new in keys.items() @@%}
|
||||
map global normal {{@@ new @@}} {{@@ old @@}}
|
||||
map global normal {{@@ new.upper() @@}} {{@@ old.upper() @@}}
|
||||
map global normal <a-{{@@ new @@}}> <a-{{@@ old @@}}>
|
||||
map global normal <a-{{@@ new.upper() @@}}> <a-{{@@ old.upper() @@}}>
|
||||
map global goto {{@@ new @@}} {{@@ old @@}}
|
||||
{%@@ endfor @@%}
|
||||
|
||||
{%@@ if key.layout == 'colemak' @@%}
|
||||
map global normal h o
|
||||
map global normal H O
|
||||
#keys
|
||||
|
||||
map global normal k s
|
||||
map global normal K S
|
||||
map global normal <c-k> <a-s>
|
||||
{%@@ for old, new in {
|
||||
"h": key.left,
|
||||
"j": key.down,
|
||||
"k": key.up,
|
||||
"l": key.right,
|
||||
"i": key.insertMode,
|
||||
"n": key.next,
|
||||
}.items() @@%}
|
||||
map global normal {{@@ new @@}} {{@@ old @@}}
|
||||
map global normal {{@@ new.upper() @@}} {{@@ old.upper() @@}}
|
||||
map global normal <a-{{@@ new @@}}> <a-{{@@ old @@}}>
|
||||
map global normal <a-{{@@ new.upper() @@}}> <a-{{@@ old.upper() @@}}>
|
||||
map global goto {{@@ new @@}} {{@@ old @@}}
|
||||
{%@@ endfor @@%}
|
||||
|
||||
map global normal t e
|
||||
{%@@ endif @@%}
|
||||
{%@@ for old, new in {
|
||||
"j": key.down,
|
||||
"k": key.up,
|
||||
}.items() @@%}
|
||||
map global normal <a-{{@@ new @@}}> 10{{@@ old @@}}
|
||||
map global normal <a-{{@@ new.upper() @@}}> 10{{@@ old.upper() @@}}
|
||||
{%@@ endfor @@%}
|
||||
|
||||
# Kakoune default color scheme
|
||||
{%@@ set accent = "rgb:%s" % accent_color.replace('#','') @@%}
|
||||
{%@@ if key.layout == 'colemak' @@%}
|
||||
map global normal h o
|
||||
map global normal H O
|
||||
|
||||
# For Code
|
||||
face global value default
|
||||
face global type yellow
|
||||
face global variable default
|
||||
face global module value
|
||||
face global function cyan
|
||||
face global string green
|
||||
face global keyword {{@@ accent @@}}
|
||||
face global operator yellow
|
||||
face global attribute green
|
||||
face global comment black
|
||||
face global documentation comment
|
||||
face global meta magenta
|
||||
face global builtin default+b
|
||||
map global normal k s
|
||||
map global normal K S
|
||||
map global normal <c-k> <a-s>
|
||||
|
||||
# For markup
|
||||
face global title blue
|
||||
face global header cyan
|
||||
face global mono green
|
||||
face global block magenta
|
||||
face global link cyan
|
||||
face global bullet cyan
|
||||
face global list yellow
|
||||
map global normal t e
|
||||
{%@@ endif @@%}
|
||||
|
||||
# builtin faces
|
||||
face global Default default,default
|
||||
map global insert <tab> '<a-;><gt>'
|
||||
map global insert <s-tab> '<a-;><lt>'
|
||||
|
||||
face global PrimarySelection white,black+fg
|
||||
face global SecondarySelection white,black+fg
|
||||
face global PrimaryCursor default,{{@@ accent @@}}+fg
|
||||
face global SecondaryCursor black,white+fg
|
||||
face global PrimaryCursorEol black,cyan+fg
|
||||
face global SecondaryCursorEol PrimaryCursorEol
|
||||
#hooks
|
||||
|
||||
face global LineNumbers default,default
|
||||
face global LineNumberCursor default,default+r
|
||||
#completion with tab
|
||||
hook global InsertCompletionShow .* %{ try %{
|
||||
execute-keys -draft 'h<a-K>\h<ret>'
|
||||
map window insert <tab> <c-n>
|
||||
map window insert <s-tab> <c-p>
|
||||
} }
|
||||
hook global InsertCompletionHide .* %{
|
||||
unmap window insert <tab> <c-n>
|
||||
unmap window insert <s-tab> <c-p>
|
||||
}
|
||||
|
||||
face global MenuForeground white,red
|
||||
face global MenuBackground white,black
|
||||
face global MenuInfo cyan
|
||||
hook global RegisterModified '"' %{ nop %sh{
|
||||
printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 &
|
||||
}}
|
||||
|
||||
face global Information black,yellow
|
||||
face global Error white,default
|
||||
|
||||
face global StatusLine black,default
|
||||
face global StatusLineMode black,default
|
||||
face global StatusLineInfo black,default
|
||||
face global StatusLineValue black,default
|
||||
face global StatusCursor black,default
|
||||
add-highlighter global/ number-lines -relative -hlcursor
|
||||
|
||||
face global Prompt yellow,default
|
||||
face global MatchingChar default,default+b
|
||||
#color
|
||||
|
||||
face global Whitespace default,default+f
|
||||
face global BufferPadding blue,default
|
||||
{%@@ set accent = "rgb:%s" % accent_color.replace('#','') @@%}
|
||||
|
||||
# For Code
|
||||
face global value default
|
||||
face global type yellow
|
||||
face global variable default
|
||||
face global module value
|
||||
face global function cyan
|
||||
face global string green
|
||||
face global keyword {{@@ accent @@}}
|
||||
face global operator yellow
|
||||
face global attribute green
|
||||
face global comment black
|
||||
face global documentation comment
|
||||
face global meta magenta
|
||||
face global builtin default+b
|
||||
|
||||
# For markup
|
||||
face global title blue
|
||||
face global header cyan
|
||||
face global mono green
|
||||
face global block magenta
|
||||
face global link cyan
|
||||
face global bullet cyan
|
||||
face global list yellow
|
||||
|
||||
# builtin faces
|
||||
face global Default default,default
|
||||
|
||||
face global PrimarySelection white,black+fg
|
||||
face global SecondarySelection white,black+fg
|
||||
face global PrimaryCursor default,{{@@ accent @@}}+fg
|
||||
face global SecondaryCursor black,white+fg
|
||||
face global PrimaryCursorEol black,cyan+fg
|
||||
face global SecondaryCursorEol PrimaryCursorEol
|
||||
|
||||
face global LineNumbers black,default
|
||||
face global LineNumberCursor white,default
|
||||
|
||||
face global MenuForeground white,red
|
||||
face global MenuBackground white,black
|
||||
face global MenuInfo cyan
|
||||
|
||||
face global Information yellow,default
|
||||
face global Error white,default
|
||||
|
||||
face global StatusLine black,default
|
||||
face global StatusLineMode green,default
|
||||
face global StatusLineInfo black,default
|
||||
face global StatusLineValue black,default
|
||||
face global StatusCursor black,red
|
||||
|
||||
face global Prompt yellow,default
|
||||
face global MatchingChar default,default+b
|
||||
|
||||
face global Whitespace default,default+f
|
||||
face global BufferPadding blue,default
|
||||
|
|
Reference in New Issue