From d3f32fcaef50f304fb8c0492a71f3368f1de8ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=85=94=E9=96=91=E5=90=9F?= <50296129+Jint-lzxy@users.noreply.github.com> Date: Tue, 12 Dec 2023 15:44:16 +0800 Subject: [PATCH] feat(plugins): add `nvim-bqf` (#1091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IMO we could think about bringing `nvim-bqf` back. Not only does it make nvim's quickfix mode a breeze to use, but it also sidesteps some of the issues we had before, like #23. Plus, it's a plugin that loads on demand, so it shouldn't cause any side effects 😄 --- lua/modules/configs/lang/bqf.lua | 9 +++++++++ lua/modules/plugins/lang.lua | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 lua/modules/configs/lang/bqf.lua diff --git a/lua/modules/configs/lang/bqf.lua b/lua/modules/configs/lang/bqf.lua new file mode 100644 index 000000000..9c80bd2e9 --- /dev/null +++ b/lua/modules/configs/lang/bqf.lua @@ -0,0 +1,9 @@ +return function() + require("modules.utils").load_plugin("bqf", { + preview = { + border = "single", + wrap = true, + winblend = 0, + }, + }) +end diff --git a/lua/modules/plugins/lang.lua b/lua/modules/plugins/lang.lua index 5154e9401..420ce81a9 100644 --- a/lua/modules/plugins/lang.lua +++ b/lua/modules/plugins/lang.lua @@ -1,5 +1,13 @@ local lang = {} +lang["kevinhwang91/nvim-bqf"] = { + lazy = true, + ft = "qf", + config = require("lang.bqf"), + dependencies = { + { "junegunn/fzf", build = ":call fzf#install()" }, + }, +} lang["fatih/vim-go"] = { lazy = true, ft = "go",