liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags

Home Page:https://liuchengxu.github.io/vista.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: Add border config to Nvim floating window preview

SethBarberee opened this issue · comments

Based on the nvim docs, a key for border should be sufficient. I prefer a rounded border on all my floating windows.

User config would look like:
let g:vista_floating_border = 'rounded'

silent let s:floating_win_id = nvim_open_win(

"IDK how to add a user config value but the rest should work..
let border = 'none'  "default value from NVIM

  silent let s:floating_win_id = nvim_open_win(
        \ s:floating_bufnr, v:true, {
        \   'width': width,
        \   'height': height,
        \   'relative': 'cursor',
        \   'anchor': anchor,
        \   'row': row + 0.4,
        \   'col': col - 5,
        \   'focusable': v:false,
        \   'border': border
        \ })