neovim: replace ClearQuickfixList command with remap
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
local formatting = require("daniil.formatting")
|
||||
|
||||
vim.api.nvim_create_user_command("ClearQuickfixList", function()
|
||||
vim.fn.setqflist({})
|
||||
end, {})
|
||||
|
||||
vim.api.nvim_create_user_command("FormattingEnable", formatting.enable, {})
|
||||
vim.api.nvim_create_user_command("FormattingDisable", formatting.disable, {})
|
||||
vim.api.nvim_create_user_command("FormattingToggle", formatting.toggle, {})
|
||||
|
||||
@@ -21,3 +21,7 @@ end
|
||||
vim.keymap.set("n", "<leader>qq", toggle_quickfix)
|
||||
vim.keymap.set("n", "<leader>qn", vim.cmd.cnext)
|
||||
vim.keymap.set("n", "<leader>qN", vim.cmd.cprevious)
|
||||
|
||||
vim.keymap.set("n", "<leader>qc", function()
|
||||
vim.fn.setqflist({})
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user