weeee
This commit is contained in:
parent
c87a659923
commit
f61d0a57a4
2 changed files with 14 additions and 1 deletions
|
@ -53,3 +53,16 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||||
-- if ts_avail and parsers.has_parser() then vim.cmd.TSBufEnable "highlight" end
|
-- if ts_avail and parsers.has_parser() then vim.cmd.TSBufEnable "highlight" end
|
||||||
-- end,
|
-- end,
|
||||||
--})
|
--})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("VimLeavePre", {
|
||||||
|
callback = function()
|
||||||
|
vim.cmd("NvimTreeClose")
|
||||||
|
-- Close all buffers with the 'httpResult' type
|
||||||
|
local buffers = vim.api.nvim_list_bufs()
|
||||||
|
for _, bufnr in ipairs(buffers) do
|
||||||
|
if vim.bo[bufnr].filetype == "httpResult" then
|
||||||
|
vim.api.nvim_buf_delete(bufnr, { force = true })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
@ -40,7 +40,7 @@ require("util").keymaps({
|
||||||
desc = "Quit",
|
desc = "Quit",
|
||||||
mode = nvx,
|
mode = nvx,
|
||||||
},
|
},
|
||||||
{ "Q", "<cmd>NvimTreeClose<cr><cmd>qa<CR>", desc = "Quit all", mode = nvx },
|
{ "Q", "<cmd>qa<CR>", desc = "Quit all", mode = nvx },
|
||||||
-- { "Q", "<cmd>qa<CR>", desc = "Quit all", mode = nvx },
|
-- { "Q", "<cmd>qa<CR>", desc = "Quit all", mode = nvx },
|
||||||
{ "<leader>Q", "<nop>", mode = nvx }, -- don't do normal Q quit
|
{ "<leader>Q", "<nop>", mode = nvx }, -- don't do normal Q quit
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue