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 trying to type triple quotes in Python, the auto pairing fails randomly if Treesitter parser for Python is installed.
Expected:
"""|"""
Randomly (~60%) get:
"""|"
Steps to reproduce:
Install lazy.nvim, ultimate-autopair.nvim, and nvim-treesitter:
Minimal init.lua
-- Bootstrap lazy.nvimlocallazypath=vim.fn.stdpath("data") .."/lazy/lazy.nvim"ifnot (vim.uvorvim.loop).fs_stat(lazypath) thenlocallazyrepo="https://github.com/folke/lazy.nvim.git"localout=vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
ifvim.v.shell_error~=0thenvim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
endendvim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before-- loading lazy.nvim so that mappings are correct.-- This is also a good place to setup other settings (vim.opt)vim.g.mapleader=""vim.g.maplocalleader="\\"-- Setup lazy.nvimrequire("lazy").setup({
spec= {
-- import your plugins
{
'altermo/ultimate-autopair.nvim',
event={'InsertEnter','CmdlineEnter'},
branch='v0.6', --recommended as each new version will have breaking changesopts={
--Config goes here
},
},
{"nvim-treesitter/nvim-treesitter", lazy=false, build=":TSUpdate"}
},
-- Configure any other settings here. See the documentation for more details.-- colorscheme that will be used when installing plugins.install= { colorscheme= { "habamax" } },
-- automatically check for plugin updateschecker= { enabled=true },
})
ultimate-autopair
- ERROR test(rfaswarp) { '"foo|"', "\1", '"|"foo', {ts = true} } failed, actuall result: '|""foo'
- ERROR test(rfaswarp) { '"|foo"', "\1", '"|"foo', {ts = true} } failed, actuall result: '"|foo"'
- ERROR test(rfaswarp) { '"|"', "\1", '"|"', {ts = true} } failed, actuall result: '|""'
- OK all test in category fastwarp have passed
- OK all test in category options have passed
- OK all test in category ext_cond have passed
- OK all test in category filter have passed
- OK all test in category simple have passed
- OK all test in category close have passed
- OK all test in category newline have passed
- OK all test in category backspace have passed
- OK all test in category tabout have passed
- OK all test in category ext_cmdtype have passed
- OK all test in category ext_alpha have passed
- OK all test in category multiline have passed
- OK all test in category ext_filetype have passed
- OK all test in category string have passed
- OK all test in category ext_suround have passed
- OK all test in category ext_escape have passed
- OK all test in category utf8 have passed
- OK all test in category ext_tsnode have passed
- OK all test in category ext_fly have passed
- OK all test in category space have passed
- OK all test in category space2 have passed
Additional information: Things work fine without Python parser installed.
The text was updated successfully, but these errors were encountered:
I should also mention that if the auto-pairing feature fails initially, it will continue to fail unless I quit and reopen Neovim. However, if it works from the start, it will function throughout the entire Neovim process.
When trying to type triple quotes in Python, the auto pairing fails randomly if Treesitter parser for Python is installed.
Expected:
Randomly (~60%) get:
Steps to reproduce:
lazy.nvim
,ultimate-autopair.nvim
, andnvim-treesitter
:Minimal
init.lua
:TSInstall python
"""
Version info
Health check
Additional information: Things work fine without Python parser installed.
The text was updated successfully, but these errors were encountered: