Closed gw31415 closed 2 years ago
This PR exports the local function populate_qflist() in lua/diaglist/quickfix.lua.
populate_qflist()
lua/diaglist/quickfix.lua
This allows, for example, to start the live-updating on LspAttach event without displaying the quickfix window:
LspAttach
require 'diaglist'.init() -- Initialize vim.api.nvim_create_autocmd('LspAttach', { callback = function() require 'diaglist.quickfix'.populate_qflist() -- Starts live-updating end })
use { 'onsails/diaglist.nvim', event = { 'LspAttach' }, config = function() require 'diaglist'.init() require 'diaglist.quickfix'.populate_qflist() end }
This PR exports the local function
populate_qflist()
inlua/diaglist/quickfix.lua
.This allows, for example, to start the live-updating on
LspAttach
event without displaying the quickfix window: