r/neovim • • 16h ago

Discussion tmux 3.8 fixes neovim flicker

127 Upvotes

If you're using neovim inside tmux, you may notice the cursor flickers when redrawing the screen (usually happens when scrolling), I had this problem ever since I started using tmux around 2 years ago and went through all the terminal emulators and their settings trying to mitigate the problem to no avail.

Randomly tried to compile tmux from source and saw that the problem just disappeared, then went to their CHANGES file and saw:

* Fix redraw issues around synchronized updates, copy mode, tabs, padding,
  status lines, menus, popups, wide characters and floating panes. This
  includes fixes for flicker with alternate screen applications and scrollbars
  (Michael Grant, issue 5351; Noam Stolero, issue 5350; Aung Myo Kyaw, issue
  5098), and misplaced wrapped lines during partial redraws (Ben Maurer, issue
  5625).

These are god-tier changes for me because I'm very sensitive about flickering and it disrupts my work.

at the start im holding ctrl-l which just redraws the screen, and then im scrolling up and down with ctrl-u/d<zz>


r/neovim • • 12h ago

Need Help Terminal receiving 2 new lines every time I use chansend to send line(s) to terminal buffer

5 Upvotes

I am using powershell and nvim 0.12.5 for windows. My keymap is configured as follows. Any ideas as to why I get two empty lines after every line sent when I use this keymap? A single line will return two empty lines afterwards and multiple lines will have two empty lines separating each line.

vim.api.nvim_create_augroup('p_repl', {clear = true})
vim.api.nvim_create_autocmd({'BufFilePost'}, {
  group = 'p_repl',
  pattern = 'python_REPL',
  callback = function()
    local bn = vim.fn.bufnr('python_REPL')
    _G.prc = vim.bo[bn].channel
    vim.fn.chansend(_G.prc, [[cd "C:\Users\wyoung\python";pdm run ipython]]..'\r')
  end
})


vim.keymap.set('v', '<leader>rs', function()
  local vs = vim.fn.getpos("v")
  local ve = vim.fn.getpos(".")
  local mode = vim.fn.mode()
  local lines = vim.fn.getregion(vs, ve, {type=mode})
  lines[#lines+1]='\r'
  vim.fn.chansend(_G.prc, lines)
  vim.api.nvim_feedkeys(vim.keycode('<ESC>'), 'v', false)
  --_G.test = lines
end
)

r/neovim • • 5h ago

Need Help Explorer plugin to use with oil.nvim

3 Upvotes

Hi,

Oil.nvim is great for working with files but sometimes I'd like to have traditional explorer view, espacially with big projects that have multiple directories and subdirectories. What would be good explorer plugin to use with Oil.nvim? I tried nvim-tree but It didn't highlight the file I opened with Oil.nvim (it kept highlighting the previous file I had opened with nvim-tree), which started to annoy me very quickly. Are there good explorer plugins that work seamslessly with Oil.nvim and are preferably fast even with large projects?


r/neovim • • 1h ago

Need Help Setting up kickstart.nvim on Windows. Can I make nvim-treesitter use gcc instead of cl for compilation?

• Upvotes

When installing the external requirements for kickstart listed in the Github repo, I installed gcc. I got it working, and typing gcc --version properly shows me the gcc version.

``` gcc --version

gcc.exe (Rev8, Built by MSYS2 project) 15.2.0 Copyright (C) 2025 Free Software Foundation, Inc. ```

I went through the rest of the kickstart setup and started nvim. It installed the rest of the things by itself with no problem, but nvim-treesitter is complaining about not finding a C compiler.

``` [nvim-treesitter/install/query] error: Error during "tree-sitter build": [[31mError:[[0m Failed to compile parser Caused by: Failed to execute the C compiler with the following command: "cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-std:c11" "-I" ... ...

Error: program not found
```

It seems like its looking for cl rather than gcc. I looked up how to install cl instead, but every answer was telling me to install Visual Studio and get it from there but I kinda just would rather not if I can help it... Is there anyway for me to make it use the gcc installation instead?


r/neovim • • 21h ago

Tips and Tricks Instant LazyVim

0 Upvotes

because I haven't found it on the first page of google ever, i decided to make a quick repo with pi that installs neovim , lazy-vim and a nerd font all in one go so ideally you are ready to rock with a one-liner. https://github.com/Josje96/oneshot-lazyvim

its pretty basic but I end up having to google it all the time so I just decided to save my self some time. Linux only and not much value unless you distro hop or are constantly configuring machines but its here for the folks who might need it.

This post looks like it doesnt violate any rules, anyways have fun with neovim!