mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-22 03:35:03 +02:00
fix error close nvim-tree last buffer
This commit is contained in:
parent
d20cfcdbfc
commit
67a507d530
3 changed files with 20 additions and 4 deletions
|
@ -6,8 +6,16 @@ return {
|
|||
cmd = { "TroubleToggle", "Trouble" },
|
||||
opts = { use_diagnostic_signs = true },
|
||||
keys = {
|
||||
{ "<leader>xx", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
|
||||
{ "<leader>xX", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },
|
||||
{
|
||||
"<leader>xx",
|
||||
"<cmd>TroubleToggle document_diagnostics<cr>",
|
||||
desc = "Document Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>xX",
|
||||
"<cmd>TroubleToggle workspace_diagnostics<cr>",
|
||||
desc = "Workspace Diagnostics (Trouble)",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -139,4 +147,5 @@ return {
|
|||
-- require("telescope").load_extension("laravel")
|
||||
-- end,
|
||||
-- },
|
||||
--
|
||||
}
|
||||
|
|
|
@ -35,6 +35,13 @@ vim.cmd([[
|
|||
augroup end
|
||||
]])
|
||||
|
||||
-- for fix error last close buffer
|
||||
vim.api.nvim_create_autocmd({ "QuitPre" }, {
|
||||
callback = function()
|
||||
vim.cmd("NvimTreeClose")
|
||||
end,
|
||||
})
|
||||
|
||||
-- Autoformat
|
||||
-- augroup _lsp
|
||||
-- autocmd!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue