From
From
From
#vim
#java
#hover #balloon with type definition ftplugin/java.vim, with #coc
highlight CocTypePopup ctermfg=White ctermbg=22 guifg=#ffffff guibg=#005f00
function! CocTypeBalloonExpr() abort
try
let l:docs = CocAction('getHover', {
\ 'bufnr': v:beval_bufnr,
\ 'line': v:beval_lnum,
\ 'col': v:beval_col
\ })
catch
return ''
endtry
for l:line in split(join(l:docs, "\n"), "\n")
let l:line = trim(l:line)
call popup_beval(l:line, {
\ 'maxwidth': 200,
\ 'padding': [0, 1, 0, 1],
\ 'border': [0, 0, 0, 0],
\ 'highlight': 'CocTypePopup',
\ 'wrap': 1
\ })
return ''
endfor
return ''
endfunction
if !has('nvim')
setl balloonevalterm
setl balloonexpr=CocTypeBalloonExpr()
endif
#shell
#productivity
#love my mg alias - clickable #grep in #kitty - opens file and line in Vim:
# Grep, click to link - open in Vim, exact line
mg() {
kitty +kitten hyperlinked_grep --smart-case -C 9 "$@"
}
-C 9 is the context - to have a few lines before and after.
For this, also you need to have in ~/.config/kitty/open-actions.conf:
protocol file
fragment_matches [0-9]+
action launch --type=overlay -- vim +$FRAGMENT -- $FILE_PATH
Make #tree clickable, tested in #kitty
Replace to #eza
eza --tree --hyperlink
With this .config/kitty/open-actions.conf
protocol file
ext cpp,cc,cxx,c++,hpp,hh,hxx,h++,c,h,java
fragment_matches [0-9]+
action launch --type=os-window -- vim +$FRAGMENT -- $FILE_PATH
protocol file
ext cpp,cc,cxx,c++,hpp,hh,hxx,h++,c,h,java
action launch --type=os-window -- vim -- $FILE_PATH
protocol file
mime text/*
fragment_matches [0-9]+
action launch --type=overlay -- vim +$FRAGMENT -- $FILE_PATH
protocol file
mime text/*
action launch --type=overlay -- vim -- $FILE_PATH
protocol file
mime image/*
action launch --type=overlay kitten icat --hold -- $FILE_PATH

My another #userstyle: for #gemini, before and after
https://gitlab.com/vitaly-zdanevich-styles/gemini








