Skip to content

Commit

Permalink
feat(nvim): update lualine and add lazy status to it
Browse files Browse the repository at this point in the history
  • Loading branch information
RayGuo-ergou committed Apr 17, 2024
1 parent aa3345c commit 8d2339d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cspell/cspell.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"language":"en","version":"0.2","flagWords":[],"words":["builtins","ergou","nvim","davidmh","nvimtools","getcwd","bufpath","bufnr","realpath","autocmd","augroup","lazyvim","tailwindcss","adminjs","apiray","apitool","autofetch","axios","bumpp","capitalise","classpath","Coloris","commitlint","composables","Consolas","cpptools","donot","Dotfiles","dtreeviz","ergou","esbenp","factorypath","Fira","firstname","highlightedyank","hlsearch","lastname","linuxbrew","Neovim","nextjs","nohl","Nuxt","nuxtjs","openapi","Pinia","pnpm","pwsh","Pylance","qrcode","Redex","removify","resave","rmvfy","sklearn","STORYBLOK","superjson","swal","tailwindcss","Tampermonkey","trpc","tsup","UNLAYER","unocss","unplugin","VITE","vueuse","vuex","webp","Xero","rmvfy","folke","noice","hrsh","CUSTOMERIO","dprint","antfu","keymap","noremap","keybind","iconify","mrkdwn","seafoam","Uncapitalize","vitepress","jiti","autoapprove","laravel","keymaps","oppt","powerlevel","DENO","undercurl","catppuccin","macchiato","navic","neotree","bufferline"]}
{"flagWords":[],"version":"0.2","words":["builtins","ergou","nvim","davidmh","nvimtools","getcwd","bufpath","bufnr","realpath","autocmd","augroup","lazyvim","tailwindcss","adminjs","apiray","apitool","autofetch","axios","bumpp","capitalise","classpath","Coloris","commitlint","composables","Consolas","cpptools","donot","Dotfiles","dtreeviz","ergou","esbenp","factorypath","Fira","firstname","highlightedyank","hlsearch","lastname","linuxbrew","Neovim","nextjs","nohl","Nuxt","nuxtjs","openapi","Pinia","pnpm","pwsh","Pylance","qrcode","Redex","removify","resave","rmvfy","sklearn","STORYBLOK","superjson","swal","tailwindcss","Tampermonkey","trpc","tsup","UNLAYER","unocss","unplugin","VITE","vueuse","vuex","webp","Xero","rmvfy","folke","noice","hrsh","CUSTOMERIO","dprint","antfu","keymap","noremap","keybind","iconify","mrkdwn","seafoam","Uncapitalize","vitepress","jiti","autoapprove","laravel","keymaps","oppt","powerlevel","DENO","undercurl","catppuccin","macchiato","navic","neotree","bufferline","gitsigns","lualine"],"language":"en"}
15 changes: 15 additions & 0 deletions nvim/lua/ergou/plugins/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ return {
end,
color = ui.fg('Constant'),
},
{
function()
return '' .. require('dap').status()
end,
cond = function()
return package.loaded['dap'] and require('dap').status() ~= ''
end,
color = ui.fg('Debug'),
},
{
require('lazy.status').updates,
cond = require('lazy.status').has_updates,
color = ui.fg('Special'),
},
{
'copilot',
},
Expand All @@ -75,6 +89,7 @@ return {
{ 'progress', separator = ' ', padding = { left = 1, right = 1 } },
},
},
extensions = { 'neo-tree', 'lazy' },
}
end,
},
Expand Down
2 changes: 1 addition & 1 deletion nvim/lua/ergou/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ return {
},
{
'<leader>sn',
'<cmd> Telescope notify<CR>',
'<cmd>Noice telescope<CR>',
desc = 'Notifications History',
},
},
Expand Down

0 comments on commit 8d2339d

Please sign in to comment.