Skip to content

Commit

Permalink
feat(health): show a command for double checking the configuration (#374
Browse files Browse the repository at this point in the history
)


Closes #373

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
mikavilpas and dependabot[bot] authored Aug 13, 2024
1 parent 065685b commit d66dbef
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 162 deletions.
6 changes: 3 additions & 3 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cy:run:ci": "concurrently --success command-cypress --kill-others --names 'client,server,cypress' --prefix-colors 'blue,green,yellow' 'npm run dev:client' 'npm run dev:server' 'wait-on --timeout 60000 http://127.0.0.1:5173 && npx cypress run'",
"dev": "concurrently --kill-others --names 'client,server,cypress' --prefix-colors 'blue,green,yellow' 'npm run dev:client' 'npm run dev:server' 'npm run cy:open'",
"dev:client": "vite",
"dev:server": "nodemon --watch ./library/server --ext '*' --exec 'npx tsx ./server/server.ts'",
"dev:server": "nodemon --watch server --ext '*' --exec 'npx tsx ./server/server.ts'",
"eslint": "eslint --max-warnings=0 .",
"preview": "vite preview"
},
Expand All @@ -30,8 +30,8 @@
"@types/node": "22.2.0",
"@types/tinycolor2": "1.4.6",
"@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "8.0.1",
"@typescript-eslint/parser": "8.0.1",
"@typescript-eslint/eslint-plugin": "8.1.0",
"@typescript-eslint/parser": "8.1.0",
"@xterm/addon-attach": "0.11.0",
"@xterm/addon-fit": "0.10.0",
"@xterm/xterm": "5.5.0",
Expand Down
7 changes: 7 additions & 0 deletions lua/yazi/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ return {
)
end

vim.health.start("yazi.config")
vim.health.info(table.concat({
"hint: execute the following command to see your configuration: >",
":lua =require('yazi').config",
"",
}, "\n"))

vim.health.ok("yazi")
end,
}
203 changes: 44 additions & 159 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d66dbef

Please sign in to comment.