This commit is contained in:
Bryan Ramos 2024-08-21 16:15:52 -04:00
parent 12b6749545
commit 528964b3e7
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
9 changed files with 73 additions and 12 deletions

View file

@ -16,9 +16,35 @@ return {
-- hijack_netrw_behavior = "disabled",
--},
})
local function toggle_neotree()
local api = vim.api
local win = api.nvim_get_current_win()
local bufs = api.nvim_list_bufs()
for _, buf in ipairs(bufs) do
local name = api.nvim_buf_get_name(buf)
if name:match("neo%-tree filesystem") then
api.nvim_command(":Neotree close")
return
end
end
api.nvim_command(":Neotree")
end
require("which-key").add({
{ "<leader>e", ":Neotree<CR>", desc = "Neotree" }
{ "<leader>e", toggle_neotree, desc = "File Explorer" }
})
vim.fn.sign_define("DiagnosticSignError",
{text = "", texthl = "DiagnosticSignError"})
vim.fn.sign_define("DiagnosticSignWarn",
{text = "", texthl = "DiagnosticSignWarn"})
vim.fn.sign_define("DiagnosticSignInfo",
{text = "", texthl = "DiagnosticSignInfo"})
vim.fn.sign_define("DiagnosticSignHint",
{text = "󰌵", texthl = "DiagnosticSignHint"})
end,
},
}