arsham / listish.nvim Goto Github PK
View Code? Open in Web Editor NEWNeovim plugin for quickfix and local lists
License: MIT License
Neovim plugin for quickfix and local lists
License: MIT License
Hi! I'm getting the following error after I add an item to the quicklist using the default <leader>qq
mapping. Afterwards, if I navigate to the quicklist and hit on another item I get this error:
Error detected while processing BufEnter Autocommands for "<buffer=14>":
Error executing lua callback: ...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:63: Invalid 'line': out of range
stack traceback:
[C]: in function 'nvim_buf_set_extmark'
...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:63: in function 'insert_extmarks'
...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:113: in function 'update_extmarks'
...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:217: in function <...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:213>
If I navigate to another quicklist item using :cnext
or :cprevious
I get another error
E5108: Error executing lua: vim/_editor.lua:0: nvim_exec2()..BufEnter Autocommands for "<buffer=14>": Vim(append):Error executing lua callback: ...ocal/share/nvim/lazy
/listish.nvim/lua/listish/visual.lua:63: Invalid 'line': out of range
stack traceback:
[C]: in function 'nvim_buf_set_extmark'
...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:63: in function 'insert_extmarks'
...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:113: in function 'update_extmarks'
...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:217: in function <...ocal/share/nvim/lazy/listish.nvim/lua/listish/visual.lua:213>
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...local/share/nvim/lazy/arshlib.nvim/lua/arshlib/quick.lua:32: in function 'cmd_and_centre'
....local/share/nvim/lazy/listish.nvim/lua/listish/init.lua:228: in function <....local/share/nvim/lazy/listish.nvim/lua/listish/init.lua:227>
stack traceback:
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...local/share/nvim/lazy/arshlib.nvim/lua/arshlib/quick.lua:32: in function 'cmd_and_centre'
....local/share/nvim/lazy/listish.nvim/lua/listish/init.lua:228: in function <....local/share/nvim/lazy/listish.nvim/lua/listish/init.lua:227>
I'm also getting a glitched looking buffer of the file afterwards, with "Quickfix Note" appended to the lines that were previously in the quickfix list but not added through this plugin
So I think it's getting confused with items that were already there
I don't know if it would be possible to add something that is similar to the functionality of stefandtw/quickfix-reflector.vim
. Where a command like :vimgrep
could populate the quickfix list, and then a %s/<search>/<replace>
command could be ran on the quickfix list, causing each change to be written to the corresponding file.
This would need to involve checking whether or not the item in the quickfix list is a note or an actual line in a file.
Just as a note, an issue I had with the plugin mentioned above is that it does not always work very well with nvim-bqf
. The preview window from bqf
will not always close, and your plugin seems to work wonderfully with bqf
.
Hi, nice plugin!
When I first open the quickfix window after populating it with some items, the styling and the column alignments aren't there. But after I close it and re-open it, or if I add an item to the list, the style and lining up gets applied.
I'm using telescope's live grep to add items to quickfix btw.
This is my config using lazy.nvim
{
"arsham/listish.nvim",
dependencies = {
"arsham/arshlib.nvim",
},
ft = "qf",
config = true,
keys = {
{ "<leader>qq", desc = "Add current position to quicklist" },
{ "<leader>qn", desc = "Add current position with note to quicklist" },
{ "<leader>qo", desc = "Open quicklist" },
{ "<leader>ww", desc = "Add current position to location list" },
{ "<leader>wn", desc = "Add current position with note to location list" },
{ "<leader>wo", desc = "Open location list" },
{ "<leader>qd", desc = "Clear quicklist" },
{ "<leader>qc", desc = "Close quicklist" },
{ "<leader>wd", desc = "Clear location list" },
{ "<leader>wc", desc = "Close location list" },
{ "<leader>cc", desc = "Close both quicklist and location list" },
},
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.