neovim: use vim.cmd.* call instead of vimscript

This commit is contained in:
2024-02-06 16:33:26 +03:00
parent 44f9aa9e0b
commit f651c44dfc
2 changed files with 3 additions and 3 deletions

View File

@@ -30,10 +30,10 @@ vim.keymap.set("n", "L", ":tabnext<CR>")
vim.g.daniil_quickfix_opened = 0
vim.keymap.set("n", "<C-q><C-q>", function()
if vim.g.daniil_quickfix_opened == 1 then
vim.cmd(":cclose")
vim.cmd.cclose()
vim.g.daniil_quickfix_opened = 0
else
vim.cmd(":copen")
vim.cmd.copen()
vim.g.daniil_quickfix_opened = 1
end
end)