telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

Unintended leading space in the input field

Open Ayushman2004 opened this issue 10 months ago • 1 comments

Description

Whenever I use the fuzzy finder, an extra space is added to the input field. To search for anything, I first have to remove this space, otherwise the search doesn't work.

https://github.com/user-attachments/assets/ec943042-8fe2-4416-9faa-0ea2844b4934

Neovim version

NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1713484068

Operating system and version

Microsoft Windows 11 Pro 10.0.26100 N/A Build 26100

Telescope version / branch / rev

telescope 0.1.8

checkhealth telescope

==============================================================================
telescope: require("telescope.health").check()

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- ERROR rg: not found. `live-grep` finder will not function without [BurntSushi/ripgrep](https://github.com/BurntSushi/ripgrep) installed.
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities

===== Installed extensions ===== ~

Steps to reproduce

  1. Start nvim
  2. Use telescope (In my case i have configured it using \ff)
  3. The extra space can be seen in the input field

Expected behavior

The input field should have been completely empty

Actual behavior

The extra space was not supposed to be there in the input field, it adds an extra step of removing it eveytime

Minimal config

set number
set relativenumber
set mouse=a

call plug#begin('C:\Users\comma\AppData\Local\nvim\autoload\plugged')

" auto-complete
Plug 'townk/vim-autoclose'

Plug 'scrooloose/nerdtree'

Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.8' }

Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}

call plug#end()

" Map <F2> to toggle NERDTree
nnoremap <F2> :NERDTreeToggle<CR>

" Map keybindings for Telescope 
nnoremap <Leader>ff :Telescope find_files<CR> 
nnoremap <Leader>lg :Telescope live_grep<CR> 
nnoremap <Leader>gb :Telescope git_branches<CR> 
nnoremap <Leader>oh :Telescope oldfiles<CR>

lua << EOF
require'nvim-treesitter.configs'.setup {
  ensure_installed = { "c", "lua", "python", "javascript" },
  sync_install = false,
  auto_install = true,
  ignore_install = { "javascript" },
  highlight = {
    enable = true,
    disable = { "c", "rust" },
    additional_vim_regex_highlighting = false,
  },
}
EOF

Ayushman2004 avatar Jan 06 '25 07:01 Ayushman2004

Have the same issue in Wezterm on a Windows 10 machine, but not on any of my Linux machines.

taraskuzyk avatar Feb 11 '25 20:02 taraskuzyk