Coder Social home page Coder Social logo

cmdline.vim's People

Contributors

milly avatar shougo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

milly kurokoji

cmdline.vim's Issues

When a Nerdfont character is passed as the first argument (prompt) of cmdline#input, the prompt is displayed even in the original command line that is not a window created by cmdline.vim.

Description

When a Nerdfont character is passed as the first argument (prompt) of cmdline#input, the prompt is displayed even in the original command line that is not a Window created by cmdline.vim.

Expected behavior

  • That character should not be visible.
  • The expected behavior is for the cursor to appear on the command line created by cmdline.vim instead of on the original command line.

Screenshot

Animation

Desktop

Minimal Config

  • init.vim
" dein {{{
let $BASE_DIR = fnamemodify(expand('<sfile>'), ':h')
let $CACHE = expand('$BASE_DIR/cache')
if !isdirectory($CACHE)
  call mkdir($CACHE, 'p')
endif

let s:dein_base_dir = expand('$CACHE/dein')
let s:dein_dir = expand(s:dein_base_dir .. '/repos/github.com/Shougo/dein.vim')

if &runtimepath !~# '/dein.vim'
  if !isdirectory(s:dein_dir)
    echo 'install dein.vim'
    execute '!git clone https://github.com/Shougo/dein.vim' s:dein_dir
  endif

  execute 'set runtimepath^=' . substitute(fnamemodify(s:dein_dir, ':p'), '[/\\]$', '', '')
endif



if dein#min#load_state(s:dein_base_dir)
  call dein#begin(s:dein_base_dir)

  call dein#add('Shougo/dein.vim')
  call dein#add('Shougo/cmdline.vim')

  call dein#end()

  call dein#save_state()
endif

if has('vim_starting') && dein#check_install()
  call dein#install()
endif


" }}}

if has('syntax')
  syntax on
endif

set title
set number

set background=light
set termguicolors
colorscheme shine
" colorscheme pablo
set backspace=indent,eol,start

(WIP) Broken highlight for original cmdline window (with specific colorschme)

Problem

Highlight for original cmdline window goes forcely black at specific light-system colorscheme (like the screenshot)

CleanShot 20240727-190837@2x

Step to Repro

Clone catppuccin/nvim colorschme (https://github.com/catppuccin/nvim) and use .vimrc like bellow:

set runtimepath+=/path/to/Shougo/cmdline.vim/
set runtimepath+=/path/to/catppuccin/nvim/

call cmdline#set_option(#{
      \ highlight_window: 'None',
      \ })

lua <<EOF
require("catppuccin").setup({
  flavour = "latte",
  transparent_background = true,
})
vim.cmd.colorscheme("catppuccin")
EOF

autocmd CmdlineEnter * call cmdline#enable()

Not working with transparency background

repro vimrc

set rtp+=/path/to/Shougo/cmdline.vim

highlight Normal guibg=NONE ctermbg=NONE

environment

OS: macOS Sonoma 14.4.1
Vim: not repro
Neovim: master HEAD (7aa5637)

screenshot

image

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.