refactor nvim neo-tree: 改寫成lazy官方教學建議的格式

This commit is contained in:
Yuan Chiu 2025-04-29 10:11:17 +08:00
parent 7c764d6def
commit ee45046c60

View File

@ -4,8 +4,9 @@ return {
{ {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }, dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function() event = "VeryLazy",
require('lualine').setup ({ opts = function()
return {
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'onedark', theme = 'onedark',
@ -45,7 +46,10 @@ return {
winbar = {}, winbar = {},
inactive_winbar = {}, inactive_winbar = {},
extensions = {} extensions = {}
}) }
end, end,
-- config = function(_, opts)
-- require('lualine').setup(opts)
-- end,
}, },
} }