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

Unintended leading space in the input field #3397

Open
Ayushman2004 opened this issue Jan 6, 2025 · 0 comments
Open

Unintended leading space in the input field #3397

Ayushman2004 opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Ayushman2004
Copy link

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.

Screen.Recording.2025-01-06.122136.mp4

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 Ayushman2004 added the bug Something isn't working label Jan 6, 2025
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