aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-09-07 23:08:06 +0200
committersrdusr <trevorgray@srdusr.com>2023-09-07 23:08:06 +0200
commit5998f2fba2063f2fc130c60e4348b0f4b6344d64 (patch)
tree17ef1de1b181d352d34f65794f39480ad7f52ba9
parent17ef2292b271a8b0cce89aefde8a84c1a7e8c49a (diff)
downloaddotfiles-5998f2fba2063f2fc130c60e4348b0f4b6344d64.tar.gz
dotfiles-5998f2fba2063f2fc130c60e4348b0f4b6344d64.zip
Formatted
-rw-r--r--lua/plugins/quickfix.lua15
1 files changed, 6 insertions, 9 deletions
diff --git a/lua/plugins/quickfix.lua b/lua/plugins/quickfix.lua
index 4ea2374..4a76da0 100644
--- a/lua/plugins/quickfix.lua
+++ b/lua/plugins/quickfix.lua
@@ -1,18 +1,15 @@
local M = {}
M.close = function()
- vim.cmd.cclose()
+ vim.cmd.cclose()
end
M.open = function()
- if vim.tbl_count(vim.fn.getqflist()) == 0 then
- vim.notify(
- "Nothing in quickfix list; not opening.",
- vim.log.levels.WARN
- )
- else
- vim.cmd.copen()
- end
+ if vim.tbl_count(vim.fn.getqflist()) == 0 then
+ vim.notify('Nothing in quickfix list; not opening.', vim.log.levels.WARN)
+ else
+ vim.cmd.copen()
+ end
end
return M