You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When fast wrap is used on lines that contain tabs it looks like the highlighting adds only one space per tab character and that makes the highlighted positions wrong.
Mapping bug
No response
Steps to reproduce
In the minimal config the fast wrap was enabled fast_wrap = {}
The fast wrap was used with the tab character in the beginning and some text afterwards (see screenshots)
Example with default tabstop=8
And with tabstop=2
Minimal config
vim.cmd[[set runtimepath=$VIMRUNTIME]]vim.cmd[[set packpath=/tmp/nvim/site]]localpackage_root='/tmp/nvim/site/pack'localinstall_path=package_root..'/packer/start/packer.nvim'localfunctionload_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
{
'windwp/nvim-autopairs',
},
-- 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('nvim-autopairs').setup({
fast_wrap= {}
})
endifvim.fn.isdirectory(install_path) ==0thenprint("Installing nvim-autopairs and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
endload_plugins()
require('packer').sync()
vim.cmd[[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
The text was updated successfully, but these errors were encountered:
I've tried to solve it, not sure if that's the best way, but it appears to work. temhelk@d9af165
If that's a satisfactory solution and it doesn't break anything I can open a pull request.
Description
When fast wrap is used on lines that contain tabs it looks like the highlighting adds only one space per tab character and that makes the highlighted positions wrong.
Mapping bug
No response
Steps to reproduce
In the minimal config the fast wrap was enabled
fast_wrap = {}
The fast wrap was used with the tab character in the beginning and some text afterwards (see screenshots)
Example with default tabstop=8
And with tabstop=2
Minimal config
The text was updated successfully, but these errors were encountered: