feat: quickfix extension (#229)

* feat: quickfix extension
This commit is contained in:
Hubert Pelczarski 2021-05-11 21:22:58 +02:00 committed by GitHub
parent bfae320155
commit 31de50919a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 2 deletions

View File

@ -387,11 +387,12 @@ extensions = { 'fzf' }
<details>
<summary><b>Available extensions</b></summary>
* chadtree
* fugitive
* fzf
* nerdtree
* chadtree
* nvim-tree
* quickfix
</details>

View File

@ -506,11 +506,12 @@ using a plugin which is supported you can load it this way:
<
Available extensions
* chadtree
* fugitive
* fzf
* nerdtree
* chadtree
* nvim-tree
* quickfix
--------------------------------------------------------------------------------
CONGIG EXAMPLES *lualine_config_examples*

View File

@ -0,0 +1,19 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function quickfix() return 'Quickfix List' end
local function quickfix_title() return vim.fn.getqflist({title = 0}).title end
local M = {}
M.sections = {
lualine_a = {quickfix},
lualine_b = {quickfix_title},
lualine_z = {'location'}
}
M.inactive_sections = vim.deepcopy(M.sections)
M.filetypes = {'qf'}
return M