Git Product home page Git Product logo

Comments (3)

gelguy avatar gelguy commented on May 30, 2024

I've just built f8f63393c12da88799cb480086922431de60ca0a but am unable to reproduce this issue.

Could you provide a minimal .vimrc that can reproduce this issue?

from wilder.nvim.

ratheesh avatar ratheesh commented on May 30, 2024

I rebuilt neovim to matcher your build's commit number. I still see this issue.

screenshot:
wilder_float_renderer_01

minimal .vimrc

set runtimepath+=~/.vim
set packpath+=~/.vim
call plug#begin('~/.vim/plugged')
    Plug 'gelguy/wilder.nvim',         { 'do': ':UpdateRemotePlugins' }
call plug#end()

set number relativenumber
set cmdheight=1

call wilder#enable_cmdline_enter()
cmap <expr> <Tab> wilder#in_context() ? wilder#next() : "\<Tab>"
cmap <expr> <S-Tab> wilder#in_context() ? wilder#previous() : "\<S-Tab>"
set wildcharm=<Tab>

hi WildStatus       ctermfg=250   ctermbg=234   cterm=NONE
hi WildMode       ctermfg=250   ctermbg=27    cterm=NONE
hi WildIndex        ctermfg=8       ctermbg=NONE  cterm=NONE
hi WildSeparator  ctermfg=108   ctermbg=234   cterm=NONE


let s:status_hl = wilder#make_hl('WilderStatus', 'WildStatus')
let s:mode_hl   = wilder#make_hl('WilderMode', 'WildMode')
let s:index_hl  = wilder#make_hl('WilderIndex', 'WildIndex')
let s:sep_hl    = wilder#make_hl('WilderSep', 'WildSeparator')

call wilder#set_option('pipeline', [
            \   wilder#branch(
            \     [
            \       wilder#check({_, x -> empty(x)}),
            \       wilder#history(15),
            \     ],
            \     wilder#cmdline_pipeline(),
            \     [
            \       wilder#python_fuzzy_delimiter(),
            \       wilder#python_search({'engine': 're'}),
            \       wilder#result_output_escape('^$,*~[]/\'),
            \     ],
            \   ),
            \ ])

call wilder#set_option('renderer', wilder#float_renderer({
            \ 'separator':' • ',
            \ 'separator_hl': s:sep_hl,
            \ 'hl': s:status_hl,
            \ 'left': [
            \    {'value': [{-> getcmdtype() ==# ':' ? ' Kommand ' : ' Suche '}, wilder#spinner()], 'hl': s:mode_hl},
            \    wilder#separator('', s:mode_hl, s:status_hl, 'left'), ' ',
            \ ],
            \ 'right': [
            \    ' ', wilder#separator('', s:index_hl, s:status_hl, 'right'),
            \    wilder#index({'hl': s:index_hl}),
            \ ],
            \ }))
call wilder#set_option('modes', ['/', '?', ':'])

Please include screenshot with float renderer in the main README file for reference.

from wilder.nvim.

gelguy avatar gelguy commented on May 30, 2024

I have managed to reproduce the issue. This is due to the interaction of floats with relativenumber.

from wilder.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.