Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt_prefix character/glyph rendered different size in Ivy layout / different screen widths #2011

Open
benfrain opened this issue Jun 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@benfrain
Copy link

benfrain commented Jun 15, 2022

Description

When using prompt_prefix = "  ", (a magnifying glass) the glyph is rendered the wrong size in Ivy. The glyph is also rendered incorrectly on smaller screens with the standard layout.

https://files.gitter.im/5fbbf0d1d73408ce4ff4bde2/qcDP/image.png

https://files.gitter.im/5fbbf0d1d73408ce4ff4bde2/8Xhp/image.png

Neovim version

NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.7.0/share/nvim"

Run :checkhealth for more info

Operating system and version

macOS 12.4

checkhealth telescope

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - OK: nvim-treesitter installed.

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0
  - OK: fd: found fd 8.3.2

## ===== Installed extensions =====

## Telescope Extension: `file_browser`
  - INFO: No healthcheck provided

## Telescope Extension: `fzf`
  - INFO: No healthcheck provided

## Telescope Extension: `session-lens`
  - INFO: No healthcheck provided

Steps to reproduce

  1. Set prompt_prefix = "  ",
  2. Try opening files with standard layout, observe icon size
  3. Try opening files with Ivy layout, observe icon size
  4. Optionally use standard layout but try with wider/thinner Terminal window and observe difference

Expected behavior

Icon/Glyph rendered at consistent size

Actual behavior

Icon/Glyph rendered at varying sizes

Minimal config

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'nvim-telescope/telescope.nvim',
        requires = {
          'nvim-lua/plenary.nvim',
          { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
        },
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('telescope').setup()
  require('telescope').load_extension('fzf')
  -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing Telescope and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
@benfrain benfrain added the bug Something isn't working label Jun 15, 2022
@benfrain benfrain changed the title prompt_prefix character different size in Ivy layout prompt_prefix character/glyph rendered different size in Ivy layout / different screen widths Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant