feat nvim gui: add glrnvim

This commit is contained in:
2025-05-30 21:53:45 +08:00
parent ddc470988a
commit 77540d4eb5
4 changed files with 61 additions and 5 deletions

View File

@@ -507,10 +507,12 @@ return {
-- 自動命令:啟動時自動顯示 Neo-tree
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
if vim.fn.winheight(0) > 20 and vim.fn.winwidth(0) > 140 then
vim.cmd("Neotree show")
vim.cmd("Neotree reveal")
end
vim.defer_fn(function()
if vim.fn.winheight(0) > 20 and vim.fn.winwidth(0) > 140 then
vim.cmd("Neotree show")
vim.cmd("Neotree reveal")
end
end, 0)
end,
})