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
Configure the nvim-surround plugin with Lazy.nvim like this:
return {
'kylechui/nvim-surround',
version="*", -- Use for stability; omit to use `main` branch for the latest featureskeys= {
{ "<leader>'", '<Cmd>normal cs"\'<CR>', desc='Change surrounding " to \'' },
{ '<leader>"', '<Cmd>normal cs\'"<CR>', desc='Change surrounding \' to "' },
},
config=function ()
require('nvim-surround').setup({ })
end
}
The lazy_nvim extension and the frecency sorting enabled.
Expected Behavior
No error when selecting the keymaps in the Legendary list.
Actual Behavior
The following error occurs:
Error executing vim.schedule lua callback: ...erts/.local/share/nvim/lazy/sqlite.lua/lua/sqlite/db.lua:223: ...ts/.local/share/nvim/lazy/sqlite.lua/lua/sqlite/stmt.lua:35: sqlite.lua: sql stat
ement parse, , stmt: `select * from item_count where item_id = "'Change surrounding " to \''"`, err: `(`near "to": syntax error`)`
Minimal Configuration to Reproduce
localroot=vim.fn.fnamemodify('./.repro', ':p')
-- set stdpaths to use .reprofor_, nameinipairs({ 'config', 'data', 'state', 'cache' }) dovim.env[('XDG_%s_HOME'):format(name:upper())] =root..'/' ..nameend-- bootstrap lazylocallazypath=root..'/plugins/lazy.nvim'ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
-- do not remove the colorscheme! it makes testing nicer'folke/tokyonight.nvim',
{
'mrjones2014/legendary.nvim',
dependencies= {
-- place your `vim.ui.select()` handler plugin here-- for example:-- 'nvim-telescope/telescope.nvim',-- 'stevearc/dressing.nvim',
},
},
-- add any other pugins here
}
require('lazy').setup(plugins, {
root=root..'/plugins',
})
require('dressing').setup()
require('legendary').setup({
-- add any options here
})
-- add anything else herevim.opt.termguicolors=true-- do not remove the colorscheme! it makes testing nicervim.cmd([[colorscheme tokyonight]])
Output from :LegendaryLog
:LegendaryLog output (click to expand)
Additional Details and/or Screenshots
No response
The text was updated successfully, but these errors were encountered:
Can you test if #473 fixes your issue? Fixes it for me. Unfortunately since I had to change the ID generation algorithm, your existing frecency data will be invalid, so feel free to run :LegendaryFrecencyReset
Similar Issues
Neovim Version
Steps to Reproduce
Configure the nvim-surround plugin with Lazy.nvim like this:
The
lazy_nvim
extension and the frecency sorting enabled.Expected Behavior
No error when selecting the keymaps in the Legendary list.
Actual Behavior
The following error occurs:
Minimal Configuration to Reproduce
Output from :LegendaryLog
:LegendaryLog
output (click to expand)Additional Details and/or Screenshots
No response
The text was updated successfully, but these errors were encountered: